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