Commit Graph

36797 Commits

Author SHA1 Message Date
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