summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Use %z to print a size_t value.jhb2002-11-081-1/+1
|
* Remove physmem from here, too, as it is defined in vm_init.c sincetmm2002-11-081-1/+0
| | | | | | r1.35 (forgotten in my last commit due to a botched patch). Pointy hat to: tmm
* Reviewed by: n_hibmamr2002-11-081-8/+16
| | | | | | MFC after: 2 weeks fix XPT_CALC_GEOMETRY to fill in some reasonable values. Inspired by aic/sbp.
* adjust critical section to only wrap around vm86_bioscall().davidxu2002-11-081-2/+2
|
* use critical_enter/exit to add a critical section around BIOS call,davidxu2002-11-081-5/+9
| | | | | | this unbreaks WITNESS. Pointed out by: jhb
* Move the definitions of the hw.physmem, hw.usermem and hw.availpagestmm2002-11-0710-228/+28
| | | | | | | | | | | sysctls to MI code; this reduces code duplication and makes all of them available on sparc64, and the latter two on powerpc. The semantics by the i386 and pc98 hw.availpages is slightly changed: previously, holes between ranges of available pages would be included, while they are excluded now. The new behaviour should be more correct and brings i386 in line with the other architectures. Move physmem to vm/vm_init.c, where this variable is used in MI code.
* Better printf() formats.mux2002-11-071-8/+7
|
* Some more printf() format fixes.mux2002-11-071-9/+7
|
* Add a cast to quiet a warning.jhb2002-11-071-1/+1
|
* Correctly print vm_offset_t types.mux2002-11-071-6/+5
|
* Properly parenthesize the DBREG_DRX macro's variables to allow foralfred2002-11-072-2/+2
| | | | DBREG_DRX(&dbregs, n) usage.
* - Use %j to print intmax_t values.jhb2002-11-071-3/+4
| | | | - Cast more daddr_t values to intmax_t when printing to quiet warnings.
* Use %z to quiet a warning.jhb2002-11-071-1/+1
|
* Cast a pointer to a uintptr_t to quiet a warning.jhb2002-11-071-1/+1
|
* Third argument to copyinstr() is a pointer to a size_t, not a pointer to ajhb2002-11-071-1/+1
| | | | u_int.
* - Use %p to print pointers instead of casting pointers to an int and usingjhb2002-11-071-6/+6
| | | | | 0x%x. - Add a cast to quiet a warning.
* Use [u]intmax_t and %j instead of long long and %ll to better fix warningsjhb2002-11-074-7/+11
| | | | | | I fixed earlier. Requested by: mux, jake
* Make 'rclk' a uintptr_t to quiet warnings.jhb2002-11-071-3/+3
|
* Use %z and %j to quiet warnings.jhb2002-11-071-6/+7
|
* Cast a pointer to a uintptr_t instead of a u_int.jhb2002-11-071-1/+1
|
* Fix the rest of the 64-bit warnings for the sr(4) driver.jhb2002-11-071-4/+4
|
* - Fix a bunch of casts to long which were truncating off_t's.mux2002-11-071-17/+15
| | | | | | | - Remove the comments which were justifying this by the fact that we don't have %q in the kernel, this was probably right back in time, but we now have %q, and we even have better to print those types (%j).
* Explicitly cast daddr_t's to long long's when printing them since daddr_tjhb2002-11-074-13/+13
| | | | | | is not long long on all archs. (They happen to be long's on 64-bit arch's and gcc considers that significant enough to warn about it.) These should probably be uintmax_t but I didn't feel like adding all the extra includes.
* A bunch of style(9) fixes.mux2002-11-071-40/+39
| | | | Obtained from: bde
* Cast a ptrdiff_t value to an int to quiet a warning since we don't supportjhb2002-11-071-1/+2
| | | | %t in the kernel printf yet.
* Quiet some DIAGNOSTIC printf warnings with band-aid casts.jhb2002-11-071-4/+5
|
* Print pointers with %p instead of casting them to an unsigned int andjhb2002-11-071-2/+2
| | | | | then printing them with 0x%x which doesn't work when sizeof(void *) > sizeof(int).
* Move sr(4) over to i386-only as it is yet another user of kvtop().jhb2002-11-072-6/+6
|
* - Use a better definition for MNAMELEN which doesn't requiremux2002-11-072-8/+3
| | | | | | | to have one #ifdef per architecture. - Change a space to a tab after a nearby #define. Obtained from: bde
* Fix lots of places that assume sizeof(int) == sizeof(void *). Most ofjhb2002-11-071-18/+18
| | | | | | | these were cosmetic. However, at least two of these changes fix bugs where a (fake) pointer to a RX descriptor was added to the physical memory start address with the cast in the wrong place resulting in rxdesc[pmem_start] instead of (uintptr_t)rxdesc + pmem_start.
* Do a bit more work in the aio code to simulate the credential environmentrwatson2002-11-071-0/+7
| | | | | | | | | | | | | | | of the original AIO request: save and restore the active thread credential as well as using the file credential, since MAC (and some other bits of the system) rely on the thread credential instead of/as well as the file credential. In brief: cache td->td_ucred when the AIO operation is queued, temporarily set and restore the kernel thread credential, and release the credential when done. Similar to ktrace credential management. Reviewed by: alc Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Cast a pointer to uintptr_t instead ot u_int.jhb2002-11-071-1/+1
|
* Simplify and optimize pmap_object_init_pt(). More specifically,alc2002-11-072-130/+64
| | | | | | take advantage of the fact that the vm object's list of pages is now ordered to reduce the overhead of finding the desired set of pages to be mapped. (See revision 1.215 of vm/vm_page.c.)
* d_read_t functions return an int, not a ssize_t. (Considering the factjhb2002-11-071-1/+1
| | | | that read(2) returns a ssize_t perhaps this is a bug in d_read_t?)
* Warning fixes for sizeof(int) != sizeof(void *).jhb2002-11-071-6/+6
|
* - Make 'irq' intptr_t instead of uintptr_t so it handles a value of -1jhb2002-11-071-2/+2
| | | | | properly. - Add a cast to quiet a printf warning.
* Fix to support pc98.nyan2002-11-072-52/+120
| | | | | | It is mostly merged from MBR specific part. Reviewed by: phk
* Move firewire back to being MI.jhb2002-11-073-8/+8
|
* Add two new workaround for firmware anomalies:tmm2002-11-079-18/+102
| | | | | | | | | | | | | | | | | 1. At least some Netra t1 models have PCI buses with no associated interrupt map, but obviously expect the PCI swizzle to be done with the interrupt number from the higher level as intpin. In this case, the mapping also needs to continue at parent bus nodes. To handle that, add a quirk table based on the "name" property of the root node to avoid breaking other boxen. This property is now retrieved and printed at boot. 2. On SPARCengine Ultra AX machines, interrupt numbers are not mapped at all, and full interrupt numbers (not just INOs) are given in the interrupt properties. This is more or less cosmetical; the PCI interrupt numbers would be wrong, but the psycho resource allocation method would pass the right numbers on anyway. Tested by: mux (1), Maxim Mazurok <maxim@km.ua> (2)
* Properly fix the occassional random crash issue that revision 1.142iedowse2002-11-072-31/+24
| | | | | | | | | | | | | | | | | | | just limited to the DEVICE_POLLING case. This removes the FXP_RFA_RNRMARK hack, and replaces it with a softc flag that is used to record when the handling of a no-resource condition was deferred due to running out of DEVICE_POLLING cycles. This was tested on -stable, but the code is essentially the same as in -current. It should only affect the case where DEVICE_POLLING is defined. The details of the mechanism behind the crashes are still uncertain but the most likely cause seems to be some kind of hardware confusion when the no-resource recovery code is accidentally invoked while the receiver is still active. This could have happened if the hardware left the 0x4000 bit of the RFA status word set. The comments in the commit log for revision 1.142 stating that the driver could clash with the hardware writing to this status word were not correct. Tested by: Guy Helmer <ghelmer@palisadesys.com>
* Merge over ar(4) and db(4) to files.pc98.jhb2002-11-071-0/+3
|
* Create a MACHINE_ARCH == i386 section that first lists modules commonjhb2002-11-071-59/+24
| | | | | to both i386 and pc98 and then uses MACHINE subsections to list modules specific to i386/i386 and i386/pc98.
* Turn on GEOM. It works on Alpha and we are going to need it for installs.jhb2002-11-071-2/+0
|
* - Fix printf warnings on 64bit plathome.simokawa2002-11-073-7/+17
| | | | - Disable fw_vmaccess() because it's not used and unuseful 64bit plathome.
* 1.Fix smp race between kernel vm86 BIOS calling and userland vm86 mode code,davidxu2002-11-0712-32/+32
| | | | | | | | | | remove global variable in_vm86call, set vm86 calling flag in PCB flags. 2.Fix vm86 BIOS calling preempted problem by changing vm86_lock mutex type from MTX_DEF to MTX_SPIN. vm86pcb is not remembered in thread struct, when the thread calling vm86 BIOS is preempted by interrupt thread, and later switching back to the thread would cause incorrect context be loaded into CPU registers, this leads to kernel crash.
* s/HZ/Hz/mux2002-11-061-1/+1
|
* Adjust some casts to quiet warnings.jhb2002-11-065-9/+9
| | | | Reviewed by: mdodd
* lnc(4) uses kvtop() and is thus i386-only for now.jhb2002-11-063-8/+8
|
* Use long long to print out a bus_addr_t again.jhb2002-11-061-2/+2
|
* Cast a bus_addr_t to a long long to make printf happy.jhb2002-11-061-1/+1
|
OpenPOWER on IntegriCloud