Commit Graph

37230 Commits

Author SHA1 Message Date
junyoung
68a06a8528 Fix indent level. 2003-10-28 04:59:18 +00:00
fredb
137eabcb90 Fix that last warning in a prettier (and less befuddling) way, as
suggested by Dave Huang.
2003-10-28 04:56:23 +00:00
christos
239484d9e9 eliminate oldsp variable, and don't save the original sp with STACK_OFFSET. 2003-10-28 01:10:50 +00:00
kleink
91af1eaa96 #define __HAVE_LONG_DOUBLE on platforms which implement a distinct
`long double' type.
2003-10-28 00:55:28 +00:00
simonb
f85a32fc57 Set the CPU frequency parameters from YAMON if available, and fall back
to the timer/RTC based calibration loops otherwise.
2003-10-27 23:47:00 +00:00
simonb
eb24c3d567 Add a function to query YAMON for the CPU frequency, and set up the
parameters for delay() from this.
2003-10-27 23:41:42 +00:00
kleink
39dd1b6e20 pmap_print_mmuregs(): move initialization of addr before its first use;
reported by David Young.
2003-10-27 23:35:41 +00:00
fredb
3fef8c6042 Fix a befuddling error from gcc. 2003-10-27 23:11:23 +00:00
dyoung
9dbaa63583 Stop false uninitialized variable warning. 2003-10-27 23:08:12 +00:00
dyoung
9a73ec4e1e Stop false uninitialized variable warning. 2003-10-27 22:48:20 +00:00
fredb
2ba4302402 Initialize some "might (not) be used uninitialized" variables. 2003-10-27 22:16:04 +00:00
kleink
8b8e22cb01 Enter vaxfp.h, the VAX pendant of <machine/ieee.h>. 2003-10-27 21:52:03 +00:00
simonb
cbe1f08c71 Remove useless call to consinit(). 2003-10-27 18:36:26 +00:00
mycroft
e07e6dfcac Add a default: to a case statement. 2003-10-27 17:17:42 +00:00
cl
fcc21e91ba move structs nextstep_disklabel/cpu_partition and appendant #defines
to sys/sys/bootblock.h
- rename to next68k_disklabel and next68k_partition
- use {u,}int{8,16,32}_t instead of char/short/int (suggested by D. Laight)
2003-10-27 16:48:08 +00:00
mycroft
8df46a3c92 In j720ssp_kthread(), move the tsleep() to the end of the loop. 2003-10-27 16:18:18 +00:00
junyoung
2c4f6d0128 Nuke __P(). 2003-10-27 14:11:46 +00:00
junyoung
8f1ba94956 Nuke __P(). 2003-10-27 13:43:48 +00:00
kleink
060a72601c For convenient use in libc, add unions of the C floating types and their
corresponding structure definitions.
2003-10-27 10:13:48 +00:00
simonb
f3f5fb123b Fix bogus uninitialised warnings. 2003-10-27 09:58:42 +00:00
mhitch
c2a45d015c Fix uninitialized variable. 2003-10-27 09:56:56 +00:00
simonb
690122fc6a Do previous differently - check which ld we're using and set the right
link flags.

Suggested by Simon Gerraty.
2003-10-27 09:27:25 +00:00
simonb
35d9e54664 If the make variable "USE_BINUTILS" is yet, use correct options to link
a kernel with recent(ish) binutils ld.
2003-10-27 07:39:10 +00:00
simonb
075b65698a Use -Wno-error to compile a file with Duff's device and document this as
a hack.
2003-10-27 07:26:17 +00:00
chs
3b6d3c710c uninitialized variables 2003-10-27 07:07:34 +00:00
christos
577a829bf1 fix make -jn by adding explicit dependency of in_cksum.o to assym.h 2003-10-27 05:49:15 +00:00
christos
63b3407c02 add posix semaphores 2003-10-27 05:34:48 +00:00
simonb
499ef1c1bb Remove (the now non-compiling) support for 128bit FP emulation, which
isn't needed for PowerPC anyway.
2003-10-27 04:32:02 +00:00
simonb
354075932d Fix a bogus uninitialised warning. 2003-10-27 04:30:32 +00:00
christos
7f7c7b7d99 Back out the libretto related hacks I accidentally committed. They are
in CVS in case one wants them :-)
2003-10-27 04:10:43 +00:00
simonb
1baeb1502a Keep bogus gcc -Wuninitialised warnings happy. 2003-10-27 03:58:17 +00:00
lukem
b81744894f appease gcc's uninitialised variable detection 2003-10-27 03:51:35 +00:00
simonb
6836656005 Remove assigned-to but otherwise unused variables. 2003-10-27 02:58:31 +00:00
simonb
8338dcf797 More bogus uninitialised warnings. 2003-10-27 02:16:15 +00:00
cl
7585316531 initialize uninitialized 2003-10-27 02:03:10 +00:00
simonb
eeb03b3e1b "Fix" bogus gcc3 uninitialised warning. 2003-10-27 01:17:59 +00:00
kleink
964d6747b5 Err, rename some members added in previous to make them reflect their
semantics better.
2003-10-27 01:11:46 +00:00
cl
16d49327a2 appease lint's ``warning: nonportable bit-field type'' in MD header 2003-10-27 01:05:08 +00:00
christos
1293ac6b7f remove buildcontext 2003-10-27 00:16:42 +00:00
christos
382a193ff0 eliminate buildcontext, and fix siginfo delivery. 2003-10-27 00:16:24 +00:00
christos
2c67a735b8 Provide the correct trap address to userland. 2003-10-27 00:15:24 +00:00
lukem
171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
chris
25c741b8a6 Fix up some unitialised variables. 2003-10-26 23:11:15 +00:00
kleink
b37192f049 For convenient use in libc, add unions of the C floating types and their
corresponding structure definitions.
2003-10-26 21:46:46 +00:00
kleink
95971b8759 Correct the position of the QUIETNAN bit. 2003-10-26 20:59:51 +00:00
mhitch
4d65fcd111 Fix errors in processing the ELF sections. Gcc3 generated a .comment section
which was erroneously being added to the boot image size and loaded into the
boot image.
2003-10-26 20:57:37 +00:00
kleink
a3fabb9e7f Use <sys/ieee754.h> where applicable. 2003-10-26 20:55:30 +00:00
christos
105af83a85 Fix uninitialized variable warning. 2003-10-26 19:18:16 +00:00
christos
2b104ea9cd use curproc, instead of homebrew test. 2003-10-26 19:17:41 +00:00
christos
8b88d0c462 Oops, the code that initialized pagesize was not actually used in the place
it was...
2003-10-26 19:17:10 +00:00
christos
594cf09925 Fix an uinitialized variable warning 2003-10-26 19:15:59 +00:00
christos
44cf8a09e9 Fix uninitialized variable warning. 2003-10-26 19:15:00 +00:00
christos
3684598911 Actually initialize the size that is printed in case of an error, so garbage
does not get printed.
2003-10-26 19:14:22 +00:00
mycroft
1d19abe12e Remove optimization hack. 2003-10-26 16:34:07 +00:00
tsutsui
93e8757186 Replace (a bunch of) NULL with '\0'. (we should define NUL?) 2003-10-26 16:15:55 +00:00
kleink
d54b367f5d Remove the FPA extended-precision format entirely; according to Richard
Earnshaw it was never supported by the toolchain.
2003-10-26 15:57:54 +00:00
tsutsui
bf9fad7ca4 Cast through (void *) to appease gcc3. (now it's also warned on mipseb) 2003-10-26 14:52:52 +00:00
jdolecek
f592a1fb33 update for SA_SIGINFO trapsignal changes 2003-10-26 13:19:30 +00:00
jdolecek
a95f0f5f7d fix NULL vs. 0 usage 2003-10-26 13:17:50 +00:00
jdolecek
85204ef973 fix NULL vs. 0 usage 2003-10-26 11:45:46 +00:00
scw
4d7283b3ec Assume that if curpcb is NULL, we're already running with alignment
faults enabled.
2003-10-26 11:34:29 +00:00
yamt
bc075cd173 use ffs() rather than handcrafted one for ipi bit search. 2003-10-26 11:30:42 +00:00
yamt
9be92e2eef issue PAUSE in the debug version of __cpu_simple_lock as well. 2003-10-26 11:28:21 +00:00
tsutsui
2685dee90d Remove -mcpu=r4000 from CFLAGS. It's no longer available on gcc3. 2003-10-26 11:27:54 +00:00
yamt
ab51be8e72 define SPINLOCK_SPIN_HOOK to let LK_SPIN lockmgr locks call x86_pause. 2003-10-26 11:15:16 +00:00
yamt
8122bbfb62 issue PAUSE during ipi rendezvous even with DIAGNOSTIC. 2003-10-26 11:09:13 +00:00
yamt
f16e031e00 don't grab kernel lock for SYCALL_MPSAFE syscalls. 2003-10-26 10:48:08 +00:00
kleink
7bc235809e Hide the extended-precision definitions from __mc68010__. 2003-10-26 10:08:02 +00:00
mycroft
c8a5d1fa1c Fix a compiler warning. 2003-10-26 09:23:06 +00:00
christos
2454871f57 Sparc64 builds with __HAVE_SIGINFO 2003-10-26 08:08:07 +00:00
christos
7553e57186 Add compat_16_machdep.c 2003-10-26 08:07:27 +00:00
christos
a5d24112bb more siginfo glue 2003-10-26 08:06:56 +00:00
christos
3d54c93f8e Initial siginfo support for sparc64 (untested). COMPAT_16 sigcontext signal
delivery tested.
2003-10-26 08:05:26 +00:00
lukem
f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
lukem
1d866c2496 use ${PRINTOBJDIR} 2003-10-26 03:49:11 +00:00
sekiya
6daa011b5a NULL -> 0 2003-10-26 03:30:26 +00:00
simonb
4204a95d43 Fix NULL/0 fallout. 2003-10-26 01:07:25 +00:00
kleink
d7efc4af9e Rip out E80 format definitions which are neither "notyet", nor going to
happen.
2003-10-26 00:36:43 +00:00
dyoung
4b8cd4a6ea Make the tags: target create tags for the ath(4) HAL. 2003-10-26 00:17:46 +00:00
kleink
793c50136c C99 7.12#4: provide INFINITY, which defaults to HUGE_VALF.
If infinities are not available, the machine-dependent header must define
__INFINITY as a positive constant of type float that overflows.
2003-10-26 00:02:02 +00:00
simonb
1bf9ca14ec Oops, need "dev/ata/files.ata" too now for umass.
Add "dev/wsfont/files.wsfont" while we're here.
2003-10-25 22:34:57 +00:00
mycroft
b1915c81d6 Oops, in the fpe_trap case, actually leave it storing $a2 in the $a3 stack
slot.  This is a hack.
2003-10-25 22:10:34 +00:00
mycroft
cde8e7d93d Store $a1 (and $a2 in another case) in the correct stack slot. 2003-10-25 22:06:59 +00:00
scw
43be86e59c Skip the alignment fault enabling code if we came from SVC mode. It's
already enabled in this case.
2003-10-25 21:51:31 +00:00
christos
b92846c162 Fix uninitialized variable warnings. 2003-10-25 21:34:07 +00:00
kleink
a1fdc1db7a Reflect the explicit integer bit here as well. 2003-10-25 21:31:25 +00:00
scw
569efbf106 Oops, forgot to commit this along with the others...
Enable alignment faults on arm32 for both kernel and userland.

If COMPAT_15 and EXEC_AOUT are defined, support per-process
alignment checking where AFLTs are always enabled when running
kernel code and userland ELF binaries, and dynamically disabled/
enabled when switching to/from a.out binaries. This is necessary
in order to execute older a.out binaries, where gcc made
deliberate use of misaligned loads under certain circumstances.
2003-10-25 20:42:49 +00:00
fvdl
0e7c77bbd4 Add ahd, bce, ataraid 2003-10-25 20:41:36 +00:00
fvdl
d0d0179583 Add ahd, bce, ataraid. 2003-10-25 20:26:54 +00:00
scw
84c17a8163 Enable alignment faults on arm32 for both kernel and userland.
If COMPAT_15 and EXEC_AOUT are defined, support per-process
alignment checking where AFLTs are always enabled when running
kernel code and userland ELF binaries, and dynamically disabled/
enabled when switching to/from a.out binaries. This is necessary
in order to execute older a.out binaries, where gcc made
deliberate use of misaligned loads under certain circumstances.
2003-10-25 19:44:42 +00:00
mycroft
ca57a40612 Remove bogus initializers. 2003-10-25 19:38:18 +00:00
mycroft
8fd2d44a41 Add a missing default. 2003-10-25 19:37:47 +00:00
matt
69d23a06d1 Add a dummy fpset for gdb. 2003-10-25 19:05:39 +00:00
mycroft
823500c484 Eliminate nested functions.
(There are a billion better ways to abstract this...)
2003-10-25 18:56:48 +00:00
christos
65235b9eb5 Fix uninitialized variable warnings 2003-10-25 18:40:37 +00:00
christos
e5d9888ff1 Fix uninitialized variable warning 2003-10-25 18:39:40 +00:00
mycroft
f5d3beb305 Fix atapibus definition. 2003-10-25 18:28:10 +00:00
kleink
f6ec7cebf1 Update for FPA long double being 80-bit extended-precision format. 2003-10-25 18:24:28 +00:00
kleink
a68b9ea2bd G/c the 128-bit extended-precision format, which is not applicable to
this platform.  Name the 80-bit version the extended format, which it
is for the FPA case according to the ARM7500FE manual.
2003-10-25 18:19:10 +00:00
mycroft
fd8bb946a3 Update for GCC3 (basically, use the __builtin_va_* implementation). 2003-10-25 18:14:48 +00:00
mycroft
ac20c30bcb Fix typo. 2003-10-25 18:04:34 +00:00
mycroft
981f659f4e Token-pasting nits for GCC 3. 2003-10-25 17:59:16 +00:00
jdolecek
e0e20eea52 add majors for ses 2003-10-25 17:50:30 +00:00
jdolecek
690bfc89f6 g/c #if 0'ed (and empty) cpu_wait() 2003-10-25 17:49:57 +00:00
chs
17a42a3dd3 make this compile again. 2003-10-25 16:33:00 +00:00
chs
cac49e5cf0 clear pcb_onfault before calling uvm_fault() and restore it afterward.
if the fault handler generates a pagefault, we'd like to panic rather
than invoking the onfault handler.
2003-10-25 16:31:39 +00:00
chs
0e9360f160 NULL -> 0 2003-10-25 16:15:07 +00:00
simonb
919b362849 Switch from intrcnt interrupt account to event counters. 2003-10-25 15:52:38 +00:00
simonb
49a8cd4e3a Rename the "strtc" device to "m41t81rtc" so that it doesn't conflict with
the MI i2c "strtc" device.
XXX: This should use the MI "strtc" device - the M41T81 should be
     compatible enough with the M41ST84 currently supported by that
     driver.
2003-10-25 15:05:00 +00:00
simonb
12d7c8ac47 Include "dev/scsipi/files.scsipi". 2003-10-25 14:36:50 +00:00
simonb
fd8bf5d7c7 This is now a duplicate of the PB1000 config file, remove it. 2003-10-25 14:33:48 +00:00
simonb
78175d51c7 Update comment that this kernel config file is for the DBAu1x00 boards too.
Add USBVERBOSE, uncomment MIIVERBOSE, sort *VERBOSE.
Add "netbsd-aumac0" config line for root-on-aumac0.
Remove commented out "usb@uhci" device.
Add USB devices from the DB1500 config file.
Add umass/sd.
2003-10-25 14:33:14 +00:00
simonb
413652f29e Fix comment for COMPAT_16. 2003-10-25 13:27:53 +00:00
simonb
916e13afc6 Add COMPAT_16 where missing.
Remove the unused COMPAT_15.
Comment out/remove COMPAT_* from INSTALL kernels.
2003-10-25 13:21:13 +00:00
simonb
95d060b02d Use "cfe_bb_*" instead of "bb_*" to avoid conflicts with <sys/disklabel.h>.
XXX: Most of this file should probably move to <sys/disklabel.h>.
2003-10-25 13:06:03 +00:00
jandberg
5210c06ca0 Add polish wscons keymaps for amiga.
From Pawel Chwalowski in port-amiga/22961.
2003-10-25 10:02:05 +00:00
shin
0b6ee0aece fix licence notice.
s/BY THE REGENTS AND CONTRIBUTORS/THE AUTHOR/.
2003-10-25 10:00:12 +00:00
scw
a554bf6c09 Simplify bus_space_{read,write}_N. Gcc3 emits better code than the old
compiler with straight C, rather than inline asm. (The latter was slightly
broken anyway with gcc3's more aggressive optimisation).
2003-10-25 08:47:14 +00:00
tsutsui
62c9f07679 Switch to use MI mk48txx(4) and todr(9) for MK48T02 todclocks on newsmips. 2003-10-25 04:07:28 +00:00
uwe
ffb8ffc1fc Bump _INTR_N from 8 (all of which were used) to 16 so that it's
possible to do experiments with new drivers without hitting this
limit.  Of this delta we already consume two slots on Jornada 680 for
IRQ0 (j6x0pwr) and IRQ3 (j6x0tp).
2003-10-25 03:45:03 +00:00
mhitch
b83111d3cb Use -Os to shrink bootblock code a little more. Now bootxx_fd builds with
gcc 3.3.2.
2003-10-25 03:14:33 +00:00
uwe
6d2654649f Add kernel_text label so that pmap(1) works. 2003-10-25 00:18:43 +00:00
chris
ceb06608ed Don't pass NULL as an integer. 2003-10-24 23:03:50 +00:00
scw
da08e40e5c gcc3 bitches about a gratuitous use of __CONCAT(), so just delete it. 2003-10-24 21:30:06 +00:00
scw
b9b144d190 Add -ffreestanding 2003-10-24 21:28:24 +00:00
matt
fc0279f650 Make this build properly. 2003-10-24 18:21:52 +00:00
matt
40ef1c4b3a Update to latest i386 version. 2003-10-24 18:20:51 +00:00
matt
aff62bef7a Make this build in a R/O build tree. And add -I. for gcc3 2003-10-24 18:20:01 +00:00
tsutsui
75ebe04013 Add options COMPAT_16. 2003-10-24 15:58:31 +00:00
mycroft
5f4b4ea107 Check the PCI device and function numbers correctly. Fixes boot device
identification on reinoud's PWS 550, and works fine on my AS200.
2003-10-24 15:00:20 +00:00
is
94b6569a57 wd and atapibus are at atabus now, not directly at wdc.
Change requested by Martin Husemann.
2003-10-24 10:57:16 +00:00
jdolecek
7b569bb154 g/c all SCSI-only device majors - shark doesn't have SCSI and isn't
expandable
pointed out by Matthew Green
2003-10-24 10:29:12 +00:00
scw
11b5112b4e The i2c pins are not interrupt sources. 2003-10-24 10:04:01 +00:00
pk
48b10bb77d pmap_map_srmmu: use the `map-pages' Forth word to let prom map all pages
at once.
2003-10-24 09:48:08 +00:00
jdolecek
821f341675 add necessary majors for miscellaneous devices, such as missing
wscons/scsi/isdn devices
2003-10-24 08:18:36 +00:00
jdolecek
e1c55a7ced add major for sci 2003-10-24 08:17:34 +00:00
jdolecek
694c204404 add major for 'ses' for archs which have the other scsi devices 2003-10-24 08:09:53 +00:00
matt
113d5c2523 use -ffreestanding 2003-10-24 06:48:53 +00:00
matt
3600060b1e Don't install bus.h 2003-10-24 05:11:12 +00:00
matt
425743428c Fix some indentation problems. Turn off PSL_EE when calling OFW. 2003-10-24 05:10:02 +00:00
matt
5b1fd73a0a Add back spkr.h 2003-10-24 05:07:44 +00:00
matt
c6f98f7a34 Add _bus_dma_phys_to_bus_mem_generic and _bus_dma_bus_mem_to_phys_generic. 2003-10-24 05:01:09 +00:00
matt
f6dce1d311 Make this work with R/O source trees. 2003-10-24 04:49:31 +00:00
matt
9c38699d01 Remove redunant raid entry. 2003-10-24 04:48:59 +00:00
kleink
56062be225 Make ieee_ext match reality, and add a note about its ABI-specific
tail padding.
2003-10-23 23:28:29 +00:00
kleink
422697679e * Move the definitions for types other than single-precision and double-
precision back to machine-dependent headers.  C99 has no strict
  requirement which, if any, extended-precision type `long double' must
  match, and even between 80-bit formats there are differences in
  implementation (m68k vs. x86).
* On arm, consider __VFP_FP__.
2003-10-23 23:26:06 +00:00
kleink
7caede41fb Oops, s/DECIMAL_DIGIT/DECIMAL_DIG/. 2003-10-23 23:16:50 +00:00
he
db957f1a5a Correct a few more instances where NULL was used in an integral context. 2003-10-23 20:25:40 +00:00
he
441d9ba0ce bus_addr_t on MIPS is integral, so use 0 instead of NULL. 2003-10-23 19:55:14 +00:00
cl
89ca05e5e9 Fix NULL change lossage. 2003-10-23 18:56:49 +00:00
fvdl
b9d0173421 Call check_mcontext to validate a register set passed in by ptrace. 2003-10-23 17:45:14 +00:00
kleink
e015c8ea64 Account separately for the explicit integer bit in extended-precision
format, due to its role in denormal representation; inspired by communication
with Charles Hannum.
2003-10-23 16:57:20 +00:00
kleink
c51a4365e2 While I'm here, retire the FPE code's own copy of ieee.h. 2003-10-23 15:07:30 +00:00
kleink
d216ee1de2 Make struct ieee_ext actually match the layout of m68k extended-precision. 2003-10-23 15:04:00 +00:00
scw
1fdc9cd5a1 Add a defflag for __BUS_SPACE_HAS_STREAM_METHODS, and add the
appropriate glue in bus.h, contingent on the option being defined.

This allows stream methods to be available on a port-by-port basis.
2003-10-23 15:03:24 +00:00
mycroft
0965dd2ada Recognize ESS1879. 2003-10-23 14:28:55 +00:00
kleink
8a1a0686ad No need for multiple-inclusion protection in these. 2003-10-23 13:02:52 +00:00
scw
9552c65898 - Make the compile-time selection of ixdp425 vs. zao425 actually work.
- Flesh out cpu_reboot() to jump to Redboot via cpu_reset().
   (See XXX comment in code regarding a problem with this).
2003-10-23 10:50:01 +00:00
ragge
7058b828e4 Fix NULL change lossage. 2003-10-23 10:05:53 +00:00
scw
41e7743573 Map the expansion bus registers. 2003-10-23 09:32:17 +00:00
scw
0df102009a Add a few more register definitions. 2003-10-23 09:29:36 +00:00
scw
3a414f559e Use pmap_enter() instead of pmap_kenter_pa() as the former automatically
ensures the mapping is cache-inhibited, so we don't have to frob the PTE
directly.
2003-10-23 09:25:44 +00:00
scw
0fd0c83111 A few minor tweaks to the onfault handlers.
Save some instructions in the non-fault return path.
2003-10-23 09:11:35 +00:00
jdolecek
484efd5a29 g/c PARTITIONSHIFT (not used anywhere) and set MAXPARTITIONS directly to 8 2003-10-23 09:02:26 +00:00
jdolecek
d4312c20e8 g/c PARTITIONMASK, it's not used anywhere anymore 2003-10-23 09:01:44 +00:00
scw
52c15bbd20 Don't drop to spl0 in cpu_switch/cpu_switchto. Do it in the idle loop
instead.

With this change, we no longer need to save the current interrupt level
in the switchframe. This is no great loss since both cpu_switch and
cpu_switchto are always called at splsched, so the process' spl is
effectively saved somewhere in the callstack.

This fixes an evbarm problem reported by Allen Briggs:

        lwp gets into sa_switch -> mi_switch with newl != NULL
            when it's the last element on the runqueue, so it
            hits the second bit of:
                if (newl == NULL) {
                        retval = cpu_switch(l, NULL);
                } else {
                        remrunqueue(newl);
                        cpu_switchto(l, newl);
                        retval = 0;
                }

        mi_switch calls remrunqueue() and cpu_switchto()

        cpu_switchto unlocks the sched lock
        cpu_switchto drops CPU priority
        softclock is received
        schedcpu is called from softclock
        schedcpu hits the first if () {} block here:
                if (l->l_priority >= PUSER) {
                        if (l->l_stat == LSRUN &&
                            (l->l_flag & L_INMEM) &&
                            (l->l_priority / PPQ) != (l->l_usrpri / PPQ)) {
                                remrunqueue(l);
                                l->l_priority = l->l_usrpri;
                                setrunqueue(l);
                        } else
                                l->l_priority = l->l_usrpri;
                }

        Since mi_switch has already run remrunqueue, the LWP has been
            removed, but it's not been put back on any queue, so the
            remrunqueue panics.
2003-10-23 08:59:10 +00:00
chs
65d5587ddd rename pv_next to pv_node. use SPLAY_RIGHT() instead of expanding it inline. 2003-10-23 08:30:21 +00:00
simonb
e93422fa5f Remove "struct aubus_ohci_softc". As well as ohci_softc_t, it only had
a copy of the interrupt cookie which isn't used outside the attach.  We
has also bogusly only told the autoconfiguration machinery that our softc
was as big as a ohci_softc_t, not a struct aubus_ohci_softc.
Also, disestablish the interrupt if OHCI initialisation fails.
2003-10-23 04:58:32 +00:00
provos
6a583bc5cb changed linked list in pmap_remove_pv to a splay tree; approved: fvdl@ 2003-10-23 03:03:20 +00:00
uwe
94a688bcbc In hd64461pcmcia_chip_io_map set *windowp to 0.
This driver ignores i/o window handle, but most 'at pcmcia'
attachments init their sc_io_window to -1 and then check at detach
time if it was changed from the "bad" value.  Keep them happy, so that
they can correctly clean up when card is detached.
2003-10-23 02:34:07 +00:00
simonb
dab526c8ce Remove OpenBSD and old NetBSD cvs id's; this file now looks nothing like
the original version.
2003-10-23 02:32:18 +00:00
simonb
94eda46437 De-__P(), remove double RCS/CVS id. 2003-10-23 02:31:03 +00:00
fvdl
118d6961e7 Add auvia. 2003-10-23 01:14:43 +00:00
uwe
49fd54d39a Use adcvar.h. 2003-10-22 23:52:46 +00:00
fvdl
878ae8047e Remove use of NULL as an integer value. 2003-10-22 22:51:36 +00:00
kleink
c9432c8396 C99: provide DECIMAL_DIGIT. 2003-10-22 21:28:08 +00:00
uwe
5846d07065 Don't compare a char to NULL. 2003-10-22 21:13:44 +00:00
uwe
ae7219a39a Don't compare an integer to NULL. 2003-10-22 21:10:15 +00:00
uwe
49bb9c9d40 Don't compare an integer variable to NULL. 2003-10-22 21:09:09 +00:00
kleink
eef6265460 G/c the local declaration of __nanf; handling of this (conditional on
__HAVE_NANF) was moved to <math.h> some time ago.
2003-10-22 21:04:40 +00:00
he
f99f18a0af Fix two more instances of paddr_t vs. NULL (use 0 instead). 2003-10-22 20:26:32 +00:00
he
20af44689e Bring this back to a compileable state; fallout from NULL type change,
so just use 0 before casting to paddr_t.
2003-10-22 20:15:20 +00:00
uwe
129cf6259c Catch up with GENERIC (1.148). 2003-10-22 18:24:53 +00:00
matt
7e1d1cca33 s/SSR/SRR 2003-10-22 17:29:18 +00:00
matt
3f37cf2db7 Rework ddblow so that if PSL_PR == 1, it dispatches directly to the
trap handler and bypasses the ddbtrap code.
2003-10-22 17:27:58 +00:00
jdolecek
958d4a6d68 add kttcp major 2003-10-22 17:12:54 +00:00
jdolecek
51c4eb4597 add majors for mly, dpti, dpt, twe, joy, radio, cir 2003-10-22 17:08:13 +00:00
jdolecek
ee510816af add wsfont major to archs which have the other wscons devices 2003-10-22 16:53:22 +00:00
kleink
5a44ed37d3 C99: provide FLT_EVAL_METHOD. 2003-10-22 16:18:48 +00:00
itohy
8a3fce54f8 Fix in debug code (no functional changes). 2003-10-22 14:18:27 +00:00
kleink
5d1a2f48d2 Use a common <machine/math.h> for amd64 and i386. 2003-10-22 11:54:23 +00:00
agc
25cf475b83 Another NULL vs. 0 correction. 2003-10-22 10:04:43 +00:00
agc
0192c15f19 Don't use NULL when 0 is needed. 2003-10-22 09:43:07 +00:00
agc
f3d647fc2c Don't use NULL for integer values. 2003-10-22 09:03:40 +00:00
fvdl
eee926f0a9 Only declare intr_scan_bus if NIOAPIC > 0. 2003-10-22 01:53:49 +00:00
fvdl
e74e8c0c71 Correctly walk up the PCI bus tree to find an interrupt match with
a swizzled pin.
2003-10-21 23:25:48 +00:00
fvdl
80cec054e5 If a bus has not been configured by MPBIOS/ACPI, and the attach hook
for it is called, mark it as configured.
2003-10-21 23:22:52 +00:00
kleink
7d9835b758 Don't use NULL in integer-type assignments/comparisons. 2003-10-21 20:59:31 +00:00
tsutsui
4ec21ca21e Use proper macro instead of NULL. 2003-10-21 17:07:20 +00:00
tsutsui
564931c4a5 - Use scsibus* at scsi?
- Use atabus* at ata?
- Use atapibus* atapi?
- Sort ATA/ATAPI device entries.
- Comment out aceride, piixide, siside, and viaide.
2003-10-21 16:28:20 +00:00