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
tsutsui
e6a659ad96
The 6th argument to extent_create() is size_t, don't pass NULL in it.
2003-10-21 16:19:04 +00:00
tsutsui
281b9dfec6
vaddr_t is not pointer, so don't compare it against NULL.
2003-10-21 16:17:18 +00:00
tsutsui
62486dcbeb
- Use one 'atabus* at ata?' instead of multiple 'atabus* at XXXide? channel ?'
...
- Comment out piixide. (can it be attached on cobalt?)
2003-10-21 15:09:19 +00:00
tsutsui
bf4d10546f
vaddr_t is not pointer, so don't compare it against NULL.
...
(BTW, should we also fix "NULL" in following printf messages?)
2003-10-21 15:05:56 +00:00
itohy
29baf4fd02
white space police
2003-10-21 13:10:42 +00:00
itohy
173218ef29
Slightly change the base address so GENERIC kernel may boot (but not confirmed).
2003-10-21 12:43:19 +00:00
itohy
87bcaf3acc
1.2: Support disklabel.
2003-10-21 12:40:15 +00:00
itohy
3fd01cc3f8
Add -D__daddr_t=int32_t so that the arguments of IODC are
...
not promoted to 64bit.
On 32bit PDC machines, IODC *requires* 32bit args and IODC
can handle only 2GB, and need not to use 64bit integer.
2003-10-21 12:35:23 +00:00
itohy
59f09ea752
Fix types of printf() args to match the format strings.
2003-10-21 12:26:27 +00:00
itohy
76595c213b
Enable disklabel support.
2003-10-21 12:24:11 +00:00
itohy
d71dd6d1f4
#if 0 unused parts.
2003-10-21 12:22:37 +00:00
itohy
a57f5d5d08
Use ../common/libsa.h for prototype declarations of common functions.
...
Add tgets prototype (should be in some header file?).
2003-10-21 12:21:05 +00:00
itohy
1bb2ee7654
Add prototypes.
2003-10-21 12:19:24 +00:00
itohy
9833e639a8
Add a prototype.
...
Silence -Wshadow.
2003-10-21 12:18:02 +00:00
kleink
004922cd70
Don't use NULL in integer-type assignments/comparisons.
2003-10-21 12:08:11 +00:00
petrov
2ba6e4bf47
don't assign/compare integer and NULL.
2003-10-21 08:43:32 +00:00
petrov
9aefdf5971
Don't assign/compare integer and NULL.
2003-10-21 08:38:04 +00:00
petrov
688c2d65e3
Don't use NULL for integer.
2003-10-21 08:31:11 +00:00
petrov
e092522bfc
Don't use NULL for an int comparsion.
2003-10-21 08:27:20 +00:00
petrov
73c14af7a1
don't use NULL for an int initialization.
2003-10-21 08:26:31 +00:00
petrov
de7eafdbf8
don't initialize an int with NULL.
2003-10-21 08:20:15 +00:00
skrll
601de4df8c
Rename dsrtc to ds1687rtc to avoid conflicting with the MI i2c
...
ds1307 driver.
Hi Jason.
2003-10-21 08:15:39 +00:00
petrov
1176590ac1
don't use NULL for u_long initialization.
2003-10-21 08:12:46 +00:00
skrll
c6935c341a
Remove the channel locator in atapibus* at umass?
2003-10-21 08:03:16 +00:00
itojun
a5b0232610
backout previous; pf and crypto are moved to common majors range
2003-10-21 07:46:50 +00:00
itojun
8386af6745
major for pf/crypto
2003-10-21 07:38:22 +00:00
fvdl
7a6172fe2e
Fix NULL assignment to an integer field.
2003-10-21 01:54:23 +00:00
fvdl
80d06975ab
Fix int vs. NULL comparison.
2003-10-21 01:45:25 +00:00
fvdl
a08babb013
NULL -> 0 for preempt() argument.
2003-10-21 00:49:34 +00:00
fvdl
a7ee73261e
Correct argument to preempt().
2003-10-21 00:46:09 +00:00
briggs
1ce6ced119
As suggested by Jason Thorpe, rename m41t to m41trtc.
2003-10-20 16:24:10 +00:00
jdolecek
bf6449bbff
add major for wsfont
2003-10-20 16:20:53 +00:00
briggs
795751a888
Add i2c and the m41t00 RTC on the i2c bus.
2003-10-20 15:37:46 +00:00
simonb
d4b0d4911f
Remove some numeric asm labels that aren't used.
2003-10-20 05:52:55 +00:00
simonb
066683efa3
Need Data Relocate in the MSR for the dcbf in pmap_procwr().
...
From Matt Thomas.
2003-10-20 05:47:52 +00:00
matt
421dd6cc28
Reorganize the way powerpc port install machine specific headers.
...
Use <powerpc/oea/bat.h> exclusively and remove <machine/bat.h> and
<powerpc/bat.h>. Remove unneeded <machine/cpufunc.h>. To insure
1:1 correspondence of <powerpc/FOO.h> to <machine/FOO.h> include
"../../powerpc/include/Makefile" in "arch/FOO/include/Makefile".
Incororpate <byte_swap.h> into <bswap.h> and then byte_swap.h
2003-10-20 00:12:09 +00:00
kleink
bb07f8defb
Add COMPAT_16.
2003-10-19 22:00:01 +00:00
he
536bcfc87a
Adapt to the new wdcattach() signature.
2003-10-19 19:29:50 +00:00
matt
e43846141a
Remove unused header.
...
Don't install kernel-only headers.
2003-10-19 18:56:39 +00:00
he
d37f50098a
Adapt to the new wdcattach() signature.
2003-10-19 18:49:25 +00:00
fvdl
e9ee9a82c7
Don't use err and trapno from a copied in mcontext.
2003-10-19 18:14:42 +00:00
cl
ed9c2d7075
don't uvm_swapout LWPs which are LSONPROC on another cpu.
...
uvm_swapout_threads will swapout LWPs which are running on another CPU:
- uvm_swapout_threads considers LWPs running on another CPU for swapout
if their l_swtime is high
- uvm_swapout_threads considers LWPs on the runqueue for swapout if their
l_swtime is high but these LWPs might be running by the time uvm_swapout
is called
symptoms of failure: panic in setrunqueue
fixes PR kern/23095
2003-10-19 17:45:35 +00:00
jdolecek
e66b4221b3
add major for ksyms, and add the comment about MD major range
2003-10-19 16:51:04 +00:00
ragge
90f561b5ff
Add lcspx console device driver.
2003-10-19 15:03:25 +00:00
ragge
a893520c07
Add console text device driver for the LCSPX framebuffer. Really dump,
...
cannot change colours, and is really slow; I haven't found how to buffer
writes to the console yet.
2003-10-19 15:02:17 +00:00
ragge
9fb208fc0a
Avoid the pvtable when devices are mapped. Fixes panics when unmapping
...
framebuffers. Set aside space in kernel map for framebuffer on VS4k.
2003-10-19 14:58:22 +00:00
ragge
836c5d5ec4
Allow mmap() of /dev/mem.
2003-10-19 14:56:28 +00:00
ragge
89d60ed8ea
Fetch SCSI controller ID from nvram for VS4k90 also.
2003-10-19 14:54:24 +00:00
he
5e5a2bb96f
Make this compile as a tool; we need to pick up the target's
...
sys/bootblock.h header in that case.
2003-10-19 11:34:27 +00:00
matt
3dc55c1216
Add IBM Network Station 1000 port. From John Gordon and updated by me.
2003-10-19 03:33:49 +00:00
matt
ba34947f80
Add powerpc-specific isa and isadma machdep code. (Merge common code from
...
prep and sandpoint and ...)
2003-10-19 03:19:32 +00:00
uwe
437e63c180
__KERNEL_RCSID.
2003-10-19 02:22:56 +00:00
uwe
738a5e234e
Config glue for j6x0tp(4).
2003-10-19 02:21:40 +00:00
uwe
e4bd58b011
Driver for Jornada 680 touch screen.
2003-10-19 02:20:25 +00:00
itohy
29f0f3babf
Change the location of BSD disklabel not to overlap with LIF header.
...
LABELSECTOR: 0 -> 1
LABELOFFSET: 64 -> 0
per discussion on NetBSD mailing lists: port-hp700 and tech-kern.
2003-10-18 23:45:30 +00:00
uwe
a2a5c1629e
Make intc_intr_priority() return old level. While here, make the code
...
more compact by factoring out register update to happen in one place,
outside the switch statements.
Add intc_intr_disable() and intc_intr_enable().
2003-10-18 23:21:35 +00:00
christos
3825627f57
define SIGTRAMP_VALID()
2003-10-18 18:34:10 +00:00
briggs
1c36c6dcdb
Add SIGTRAMP_VALID().
2003-10-18 18:34:09 +00:00
briggs
11088af0ac
Add SIGTRAMP_VALID().
2003-10-18 18:29:53 +00:00
briggs
093821886e
Define SIGTRAMP_VALID(v).
2003-10-18 17:57:06 +00:00
ragge
c862115a9d
Use the vax confdata to determine whether to use serial console.
...
Do cn_set_magic() for the VAX DDB escape sequence (ESC-D).
2003-10-18 12:09:18 +00:00
ragge
7b77aca6ae
Do not try to fetch the current proc if curlwp == NULL. This caused
...
DDB to fail if no process were running.
2003-10-18 12:07:44 +00:00
ragge
f545d1a885
Read out confdata for the VS4000/90 also.
2003-10-18 12:06:11 +00:00
lukem
7d84b90c92
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
...
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
2003-10-18 08:30:12 +00:00
lukem
184141db07
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
2003-10-18 08:12:07 +00:00
lukem
e1616bdc8a
use 'atabus* at ata?'
...
use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
2003-10-18 08:11:02 +00:00
petrov
b8454aaa52
cpu_getmcontext: get fsr from correct place.
2003-10-18 06:51:42 +00:00
simonb
513b330566
Tell the Alchemy Au1x00 on-chip ohci that we're in big-endian mode if
...
necessary.
2003-10-18 04:34:30 +00:00
simonb
136dd90b25
Remove unused ohci stub.
2003-10-18 04:31:37 +00:00
uwe
b78fce9820
Config glue for j6x0pwr(4).
2003-10-18 01:40:05 +00:00
uwe
8b50c662e8
Jornada 680/690 power &c. Doesn't do much useful at the moment, but
...
provides RTFS documentation on how things are wired in Jornada.
Listens to "switch off" interrupt generated when On/Off button is
pressed, or the lid is closed.
Polls the status of main and backup batteries and warns if main
battery is low.
2003-10-18 01:38:39 +00:00
uwe
15e3e96e71
Config glue for adc(4).
2003-10-18 01:29:05 +00:00
uwe
721e6868b8
Driver for analog->digital converter in sh7709.
2003-10-18 01:27:18 +00:00
matt
3575370e0a
Remove worthless load.
...
Save curcpu before doing uniprocessor dispatch.
2003-10-17 22:21:38 +00:00
matt
12ecf72b47
Don't zero curlwp/curpcb in cpu_switchto.
...
Use correct register in the store conditional.
Add DIAGNOSTIC check for null curpcb on cpu_switch exit.
2003-10-17 21:08:57 +00:00
fvdl
c8c91c50dd
Correct VM_MAXUSER_ADDRESS definitions, it was wasting a few pages.
2003-10-17 20:27:00 +00:00
matt
67ab911529
Add a KASSERT() to verify the pcb is not NULL.
2003-10-17 19:56:18 +00:00
cdi
d65b10404c
Change console code to use cninit() and null console. Add serial console
...
check.
2003-10-17 18:20:10 +00:00
tsutsui
3a646e9b6c
Add some delay before calling comcnattach() to wait
...
previous console output to complete.
2003-10-17 18:15:52 +00:00
tsutsui
19e183345a
Add vr at pci and dmphy at mii. Tested on my O2.
2003-10-17 17:18:16 +00:00
fvdl
5b12e0425d
Put the ucontext pointer in %r15 for signal delivery, so that it is
...
saved across the handler call.
2003-10-17 16:24:31 +00:00
sekiya
a747a8f16d
Mouse port offset was incorrect.
2003-10-17 12:43:08 +00:00
sekiya
af12cdb68a
Compile dsclock_hpc.c only if dsclock is present in config file.
2003-10-17 06:49:34 +00:00
fvdl
6a6db3cbd9
Add hooks and structures to allow the MP table intr mapping code a
...
better shot at finding a mapping. For PCI interrupts, if a bus
has no mappings, try its parent, with the swizzled pin, and the
bridge's device number.
2003-10-16 22:56:29 +00:00
jdolecek
4bb42bc621
switch ARM to use same minor for /dev/zero as other archs
...
as discussed on tech-arm@
2003-10-16 12:02:58 +00:00
uwe
390e87a8b6
Use 'CH' for channel select in the ADCSR bits format string for consistency.
2003-10-15 22:55:07 +00:00
jdolecek
6b5eef9a33
add major for nsmb, at #98 to be in sync with i386
2003-10-15 18:27:20 +00:00
jdolecek
79ebb210fa
add majors for ipfilter, lkm, vnd, tun, raid, cgd, ccd, and md
...
where missing
2003-10-15 18:20:19 +00:00
scw
def6ab457b
Remove the #ifdef __XSCALE__ around the strd test as the instruction
...
is available on any v5E processor.
Pointed out by Richard Earnshaw.
2003-10-15 14:07:03 +00:00
pk
7dceb5fbf9
obp_v2_getbootfile: we might as well be complete by also considering the
...
PROM environment variables `diag-switch?' and `diag-file'.
2003-10-15 11:51:48 +00:00
drochner
ecbadcc56c
fix typo (harmless as long as pmap_update() is a noop)
2003-10-15 09:44:55 +00:00
pk
a2fbe60ed4
sun4m_access_fault: Treat text/data error traps as if they were text/data
...
exception traps, except that they're logged on the console.
2003-10-15 07:49:41 +00:00
simonb
07c9a24e6a
One defintion of OP_SYNC should be enough.
2003-10-15 06:46:46 +00:00
petrov
7b20d2185b
Set CPU_UPAID when enabling timer interrupts.
2003-10-15 05:16:36 +00:00
gson
d1298fd2a7
If a bootxx program already happened to be a multiple of 512 bytes in
...
length before padding, the shell command to conditionally pad it to
a multiple of 512 bytes returned a nonzero exit status, causing the
build to fail.
2003-10-15 03:49:57 +00:00
simonb
ef41f16231
Correct a test for setting IFF_OACTIVE on the interface.
2003-10-15 02:10:00 +00:00
fvdl
14cdf7ae6d
Proper checks for kmem reads beyond _end
2003-10-14 22:33:29 +00:00
nathanw
768b79db69
Catch up to ata/ide changes; look for a parent device of wd named "atabus"
...
instead of "pciide", and check one layer farther up in the device hierarchy
for the scsipidev device.
From Manuel Bouyer, tested by me on a up1500 (identical changes to other
ide-booting code).
2003-10-14 22:01:02 +00:00
fvdl
8639708413
Pass the right argument pointer to trace_enter/trace_exit.
2003-10-14 18:54:34 +00:00
tsutsui
53cbca2fa2
Add options COMPAT_16.
2003-10-14 16:16:04 +00:00
tron
162ada1c8b
Replace symbolic link "/usr/include/varargs.h" (pointing to
...
"/usr/include/machine/varargs.h") by a stub include file which will
emit an error if GCC 3.3 or newer is used and include "machine/varargs.h"
otherwise.
Based on a suggestion by Richard Earnshaw. This fixes PR toolchain/22888
by myself.
2003-10-14 12:46:44 +00:00
christos
5a36293740
Make COMPAT_NETBSD32 compile again (untested)
2003-10-14 00:28:19 +00:00
christos
d0e3551301
Add mcontext32_t and friends. This is WIP.
2003-10-13 23:45:14 +00:00
nathanw
b5b9ca33d7
Catch up DEBUG printfs to siginfo changes.
2003-10-13 22:19:15 +00:00
scw
9be5d4cbe9
Document the need for pcb32_r8 to be quad-aligned, now that cpuswitch()
...
uses Xscale's "strd" instruction.
2003-10-13 21:46:39 +00:00
scw
63d24b09fd
A couple of Xscale tweaks:
...
- Use the "clz" instruction to pick a run-queue, instead of using the
ffs-by-table-lookup method.
- Use strd instead of stmia where possible.
- Use multiple ldr instructions instead of ldmia where possible.
2003-10-13 21:44:27 +00:00
scw
100d67ec52
Xscale-optimised bcopyinout.
...
Contributed by Wasabi Systems.
2003-10-13 21:22:40 +00:00
scw
3bf49b3ae8
Tweak the read/write data abort check to recognise Xscale's strd/ldrd
...
instructions.
While the original code matched "strd" just fine, it also matched
the "ldrd" instruction ...
2003-10-13 21:13:30 +00:00
cl
1f11f69f25
add MD part of SA/pthread pagefault handling on hppa
2003-10-13 21:12:12 +00:00
scw
9d9ddf0409
Xscale-optimised b{copy,zero}_page().
...
Contributed by Wasabi Systems.
2003-10-13 21:03:13 +00:00
scw
063066a055
On Xscale, define PMAP_UAREA() and use it to tweak uarea mappings so
...
they use the mini D$.
This results in a small performance boost on xscale platforms, since
flushing the main cache on a context switch won't affect the kernel
stack/pcb.
2003-10-13 20:50:34 +00:00
fvdl
759027f9ca
Define a 32bit compat version of the siginfo sendsig, and rename the
...
old one to reflect it's COMPAT_16 status.
2003-10-13 18:47:10 +00:00
fvdl
6781db3e2a
Do checks on passed in context values (sigreturn/setcontext) explicitly;
...
can't rely on catching the trap on iret for a few reasons.
2003-10-13 18:45:59 +00:00
fvdl
0deb20a334
Define 32bit versions of signal frames and contexts.
2003-10-13 18:41:11 +00:00
fvdl
ef0bb54192
Define a few macros to validate userspace selectors.
2003-10-13 18:40:16 +00:00
fvdl
dc921bb48e
Define mcontext32_t (if COMPAT_NETBSD32).
2003-10-13 18:38:34 +00:00
fvdl
4505ad3141
Define all frame members as unsigned, to avoid any possibility of
...
sign extension on these values.
2003-10-13 18:38:02 +00:00
cl
e9de14a4d3
add MD part of SA/pthread pagefault handling on sh3
2003-10-13 18:08:45 +00:00
pk
595fb05c30
obp_v2_getbootfile: use the value of the `boot-file' prom environment
...
variable if we determine that the boot arguments presented to us by the
PROM do not contain a boot file name.
Idea from Greg Woods on port-sparc@netbsd.org .
2003-10-13 17:59:19 +00:00
agc
b2b49933f4
Move Matt Green's code from a 4-clause to a 3-clause licence by removing
...
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
dyoung
ef743c64b6
Switch wi(4) to the new 802.11 layer.
2003-10-13 08:07:21 +00:00
dsl
ca9f17c96d
Add bsd.obj.mk so these directories get their own obj directory (for the
...
library objects shared by their subdirectories).
Needed when the obj directory isn't a parent of the subdirectories obj directory
2003-10-13 06:56:47 +00:00
dyoung
18cc6db280
For PCI attachment, ath(4) needs both the HAL binary and the files
...
listed in dev/pci/files.ath.
2003-10-13 06:40:14 +00:00
lukem
e076c47767
Instead of defining TERSE_ERROR by default (due to space constraints),
...
define NO_LBA_CHECK. bootxx_msdos still needs TERSE_ERROR because its
BPB is larger than the default.
2003-10-13 06:15:00 +00:00
lukem
af93a5c749
The reserved space for the BIOS Parameter Block (BPB) only needs to be for
...
FAT16 (11+51) except when booting from FAT{12,16,32}, which needs FAT32 (11+79).
We still reserve the BPB for non-bootxx_msdos PBR bootblocks because
they may be installed as a floppy boot record (and those need a BPB).
Remove some redundant wording in an error messsage, saving 6 bytes.
2003-10-13 06:08:28 +00:00
dyoung
8a58dbfd9a
Add atw at cardbus (ADMtek ADM8211 802.11).
2003-10-13 05:46:26 +00:00
dyoung
f39f5e0652
Add atw (ADMtek ADM8211 802.11).
2003-10-13 05:45:59 +00:00
dyoung
2f8d4622dd
Add atw at cardbus (ADMtek ADM8211).
2003-10-13 05:43:14 +00:00
dyoung
075c766e9b
Add atw(4), ADMtek ADM8211 802.11, at PCI bus and Cardbus.
2003-10-13 05:20:52 +00:00
dyoung
b491c05ae7
Add the 82801EB LPC, which provides the PCI Interrupt Router on
...
the Dell PowerEdge 400SC.
2003-10-13 05:19:19 +00:00
pk
46166f9be5
Simplify fpu_cleanup() by having it return a code to indicate that a SIGFPE
...
is to be posted; let trap() deal with constructing the siginfo structure.
2003-10-12 19:48:52 +00:00
pk
22813649af
Prepare for move to SIGINFO framework.
2003-10-12 19:08:17 +00:00
chs
5f8a58e4d6
cache_flush_virt() is buggy, just use blast_dcache() instead.
...
this should fix PR 23093.
2003-10-12 19:06:29 +00:00
he
fe6ca02de9
Since the boot loader is a stand-alone program, stub out LIBCRT0,
...
LIBCRTBEGIN, LIBCRTEND, and LIBC -- these are being added to the
PROG target list by bsd.prog.mk.
2003-10-12 18:56:44 +00:00
pk
75da020979
sendsig: we must copy out the `ksi_info' field.
2003-10-12 17:08:08 +00:00
pk
42e535f6f6
sendsig: don't copy out the ucontext_t padding bytes onto the user stack.
2003-10-12 16:12:20 +00:00
pk
179cafcae3
There's no point in having two separate sets of padding; add the local
...
__filler bytes to _UC_MACHINE_PAD.
2003-10-12 16:01:35 +00:00
pk
c2e604a45c
Simplify struct sigframe.
2003-10-12 14:36:19 +00:00
pk
8169a404f6
mem_access_fault_*: call KSI_INIT_TRAP() before filling in the siginfo fields.
2003-10-12 14:34:31 +00:00
pk
44510064ca
Define SIGTRAMP_VALID.
2003-10-11 22:15:18 +00:00
petrov
2514d9e4f2
When establishing interrupt set CPU_UPAID in mapping register
...
so that interrupt would be delivered.
2003-10-11 20:53:14 +00:00
jdolecek
a8351752c7
add majors for several missing standard devices - 'log', 'filedesc' & 'ksyms'
2003-10-11 12:31:05 +00:00
jdolecek
37f4d8397e
add major for 'filedesc', which is needed for /dev/stdin et. al.
2003-10-11 12:30:24 +00:00
tsutsui
c74700fe65
It seems r4k_sdcache_wb_range_NN() function can't handle
...
R10000 L2 cache (which is 2-way set-associative write-back),
so use r4k_sdcache_wbinv_range_NN() for workaround until someone
implement proper r10k_sdcache_*() ops.
Problem reported by Christopher SEKIYA.
2003-10-11 09:09:15 +00:00
jdolecek
0979ebaa1c
g/c major for 'netsmb' and mark the slot free - it has never been used
2003-10-11 07:54:26 +00:00
matt
e291b36f05
Get hp700 boot tools to compile again. Patches from Jochen Knuz.
...
(with some modification from me).
2003-10-11 03:57:31 +00:00
ichiro
1a8b4d7eab
add mapping table of pci interrupt number
2003-10-11 03:53:52 +00:00
christos
0fa70c1f22
fix syntax errors (hi manuel)
2003-10-11 03:04:34 +00:00
christos
4262a06968
try to fix the compile error.
2003-10-11 03:01:53 +00:00
shin
e3dca0d3c1
fix typo.
2003-10-11 01:06:48 +00:00
uwe
81428320f3
Register definitions for sh7709 analog->digital converter.
2003-10-10 23:52:30 +00:00
jdolecek
ef5bb330f5
reassing majors for crypto and pf to use the newly defined MI major
...
range
2003-10-10 22:42:39 +00:00
jdolecek
4e915c9ccd
update the comment - the space for machine-dependant majors
...
is reduced to 0-143
follows discussion on tech-kern
2003-10-10 21:21:25 +00:00
tron
676596e33a
Fix build problem when MPACPI is used without ioapic as proposed by
...
Quentin Garnier on current-users@NetBSD.org .
2003-10-10 20:16:54 +00:00
jdolecek
8af3527920
g/c USETOOLS?= no
2003-10-10 20:08:00 +00:00
thorpej
a483d3a893
Delete the vinum major; it conflicts with an existing entry, and should
...
be added to the MI space anyway.
2003-10-10 17:36:56 +00:00
chs
d586f723fe
add a command to dump the ITSB, now that it's separate from the DTSB.
2003-10-10 15:19:09 +00:00
chs
6677871b04
increase SYMTAB_SPACE.
2003-10-10 15:17:41 +00:00
chs
06332c88ef
update for new gas syntax. from Jochen Kunz.
2003-10-10 15:07:43 +00:00
matt
0dbe439e05
Adapt ARM Linux compat code to deal with SIGINFO.
2003-10-10 14:44:42 +00:00
simonb
84fa2d5a87
Take previous even further - leave only CTL_MACHDEP and related
...
definitions and structures outside the #ifdef _KERNEL block.
2003-10-10 13:02:34 +00:00
yamt
26efaef9af
revert the previous (thanks, lukem)
...
and wrap curcpu, cpu_info and friends with #ifdef _KERNEL completely.
2003-10-10 11:53:44 +00:00
simonb
96cde2b8b5
White space nit.
2003-10-10 07:04:14 +00:00
simonb
83f1167a97
Need to rename dsrtc to ds1743rtc here too.
2003-10-10 07:01:50 +00:00
lukem
b313b2641e
Userland needs <stddef.h> for offsetof(), not <lib/libkern/libkern.h> ...
...
(Arguably a chunk more of this file could be protected with _KERNEL.
That's a separate project.)
2003-10-10 06:27:15 +00:00
grog
2ce576d37a
Add config info for Vinum
2003-10-10 04:50:07 +00:00
grog
c6ed3adf63
Add major number for Vinum.
2003-10-10 03:51:58 +00:00
matt
4b22ee736b
Add support for MPC74[45]7
2003-10-09 20:49:06 +00:00
bouyer
ae9c3d7747
After pciide split, add cmdide and aceride to bus_class_tab[], per Martin
...
Husemann and Takeshi Nakayama requests.
XXX others IDE controller drivers needs to be added too, or a better
way of handling it has to be found.
2003-10-09 17:55:44 +00:00
fvdl
0a79ef3086
Allow probing of CPUs only by ACPI, so that MPBIOS can still do interrupt
...
mapping should ACPI have a quirk. From Christos. One change by me: make
sure that lapic_boot_init doesn't get called twice, otherwise the
cpu_info entry for the CPU with id 0 gets zapped.
2003-10-09 16:25:16 +00:00
yamt
d9d3c0dd8e
avoid a magic number in curcpu().
2003-10-09 13:46:43 +00:00
dsl
ab073a34f8
Move lib/crt/start_rom.S to a more sensible location.
2003-10-09 10:56:13 +00:00
dsl
44ac426707
Use real_to_prot (etc) from stand/lib.
...
Add a patchable header for boot parameters (eg console type).
2003-10-09 10:36:26 +00:00
dsl
3d4b6a197d
Pick up X86_BOOT_MAGIC_* from bootblock.h
...
Move boot_params.S to lib (seems useful to use it in pxeboot).
2003-10-09 10:29:39 +00:00
dsl
6f9f3c64a7
Move start_pxe.S to a more sensible place
2003-10-09 09:42:25 +00:00
ragge
577c722173
pdp10 uses register 1 for return value, not 0.
...
While here, adjust a comment.
2003-10-09 08:35:31 +00:00
matt
acf4563b13
Add code to drop into DDB if you get a DSI fault on the current stack page.
2003-10-09 07:12:24 +00:00
uwe
a348eb3a30
Add IPR mappings for remaining sh7709 IRQx.
...
While here, fix couple of typos.
2003-10-08 23:31:43 +00:00
thorpej
901da40cf9
Add some accessor macros for the ucontext:
...
* _UC_MACHINE_PC() - access the program counter
* _UC_MACHINE_INTRV() - access the integer return value register
* _UC_MACHINE_SET_PC() - set the program counter (this requires
special handling on some platforms).
2003-10-08 22:43:01 +00:00
bouyer
7719e83c8b
Following Matt Thomas's request, rename ata attribute to ata_hl, and
...
wdc_base to ata. We can now have
atabus* at ata?
in kernel config files.
2003-10-08 20:57:59 +00:00
fvdl
ba7165e37f
Adapt for ksiginfo changes.
2003-10-08 19:58:54 +00:00
fvdl
995d3a4d2f
Do proper FPU trap reporting for SIGFPE, copied from the i386 port.
2003-10-08 19:55:39 +00:00
scw
0047ff3f6e
Ok, I give up for now. There's no easy/reliable way to deal with
...
these spurious interrupts.
2003-10-08 19:46:12 +00:00
scw
677ee2fdbf
Simplify the last change to just check for spurious GPIO interrupts.
2003-10-08 19:39:40 +00:00
scw
ecc5fec473
If no interrupt handler claims to have dealt with a level-triggered
...
GPIO interrupt, check the GPIO interrupt status register after clearing
it down to see if the interrupt source has disappeared. If it does,
assume it was a spurious event. Otherwise, panic.
2003-10-08 19:31:17 +00:00
thorpej
80649e0513
Use KSI_INIT_TRAP().
2003-10-08 19:21:52 +00:00
thorpej
55452b8f35
Use KSI_INIT_TRAP().
2003-10-08 19:10:30 +00:00
dsl
977fe7c488
Change the way the shared lib directory is handled.
...
Should now work if ${.OBJDIR} = ${.CURDIR}/obj.
2003-10-08 18:51:50 +00:00
dsl
cabc1ae936
Need to explicitly create directory behing symlink.
...
Clean share lib directory.
2003-10-08 18:38:43 +00:00
dsl
2ae753f095
Only build the libraries once,
2003-10-08 18:20:15 +00:00
tsutsui
cdb8e31d33
- Count jazzio interrupts with evcnt(9).
...
- Misc cleanup.
2003-10-08 18:12:24 +00:00
tsutsui
27ddbb512d
Use mips_dcache_inv_range() for BUS_DMASYNC_PREREAD if possible.
...
Tested on NEC-JC94 (R4400 with 1MB L2 cache).
2003-10-08 18:10:07 +00:00