Commit Graph

37518 Commits

Author SHA1 Message Date
bjh21
ed4b80b144 Fix the ARM mainbus version of bus_space_subregion() to correctly shift the
base offset before using it.  This makes it work the same as every other
implementation, and makes wdc at pioc on acorn32 work again.  Fix the only
caller I found which depended on the old behaviour.
2003-12-06 22:05:33 +00:00
bjh21
b5479325d6 Correct typo in last. 2003-12-06 20:00:12 +00:00
bjh21
3f1dc2b013 Don't complain if we're asked for != 8 channels. There's no actual support
for fewer channels yet, but this is necessary just to avoid a boot-time panic.
2003-12-06 19:59:32 +00:00
bjh21
cdfcb25142 Fix tiny formatting glitches. 2003-12-06 17:39:30 +00:00
fvdl
e16473e240 Segment registers are only 16 bits wide, so only check 16 bits worth of
them for validity in check_mcontext.
2003-12-06 17:35:44 +00:00
simonb
c26ed27f0c Only compile in sysctl_machdep_booted_kernel() if __HAVE_BOOTINFO_H
is defined.
2003-12-06 15:20:04 +00:00
simonb
c8ee7b6dd7 Add a WEAK_ALIAS macro.
While here, use #if instead of #ifdef for __STDC__ check.
2003-12-06 14:06:28 +00:00
simonb
5fc19197d5 Use crosscompile-friendly ${BINUTILSPROGRAMNAMES}.
Enable WARNS=2.
Don't use -z and update start address for binutils 2.14 ld.
2003-12-06 14:04:33 +00:00
simonb
b3d9f58082 Make WARNS=2 friendly. 2003-12-06 14:02:40 +00:00
simonb
717bd17cec KNF, ANSIfy, de-__P. 2003-12-06 13:09:01 +00:00
atatat
23293f9bae Pick off a couple of cpu_sysctl() stragglers. 2003-12-06 03:16:48 +00:00
he
b4d0601326 Follow through with the removal of cpu_sysctl() here as well,
on the tail of the dynamic sysctl reorganization.
2003-12-05 23:56:20 +00:00
petrov
bd2319422e Don't convert syscall args for tracing 32bit binaries on 64bit
kernel. Found and suggested by David Light. Fixes port-sparc64/23473.
2003-12-05 21:49:00 +00:00
jdolecek
cbff3c76c3 fix IPRINTF() code to compile if the printf()s are enabled; also print
lwp pointers rather than proc pointer
2003-12-05 21:24:57 +00:00
christos
f7e4c22afc Add a dummy darwin_slock 2003-12-05 20:34:45 +00:00
christos
6b364b0d7f Do the song and dance for the new indirect register mappings.
XXX: This driver's attach routine does not free resources on allocation
failure.
2003-12-05 19:00:07 +00:00
hannken
8e29a1a664 Make it compile without PPC_OEA. 2003-12-05 11:00:57 +00:00
atatat
13f8d2ce5f Dynamic sysctl.
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
2003-12-04 19:38:21 +00:00
keihan
29c72c57f0 netbsd.org -> NetBSD.org
All "netbsd.org" is now gone from src/sys/arch.
2003-12-04 13:05:15 +00:00
keihan
8476e6755a NetBSD.ORG -> NetBSD.org
Now all "NetBSD.ORG" are gone from src/sys.
2003-12-04 12:42:54 +00:00
he
afc065b0f9 Catch up with the recent changes in wdcvar.h, patterned after wdc_isa.c. 2003-12-04 09:32:37 +00:00
briggs
5513f6b2e8 Make PCI host/slave detection work for the iq31244 as well as the iq80321. 2003-12-04 07:02:18 +00:00
lonewolf
803a8479e6 Replace some magic numbers by symbolic constants. 2003-12-04 05:31:27 +00:00
christos
f1a738c8b7 add stub file so that the kernel compiles. 2003-12-04 01:17:19 +00:00
petrov
f3ac37d795 syscall clean up from ifdeffed out code. 2003-12-03 20:23:41 +00:00
scw
ef87776bdb As per the recent ixp425 fix (which is based on this code):
In the interrupt dispatch loop, make sure to handle any pending interrupts
which came in while we were dealing with the first interrupt(s), and which
are enabled at the current spl.

This fixes a problem where the intr_enabled/hw mask is not updated to
allow pending interrupts through until the next splx(). In some case,
interrupts could be delayed until the next clock tick.
2003-12-03 19:55:37 +00:00
manu
057381d1b4 Move machine dependent definitions to machine dependent headers. 2003-12-03 18:25:44 +00:00
petrov
7731fd90ac Use pmap_get_page return code instead, remove unused pmap_stats,
delete incorrect KASSERT in pmap_kenter_pa.
2003-12-03 17:58:47 +00:00
scw
99df1a0ae1 In the interrupt dispatch loop, make sure to handle any pending interrupts
which came in while we were dealing with the first interrupt(s), and which
are enabled at the current spl.

This fixes a problem where the intr_enabled/hw mask is not updated to
allow pending interrupts through until the next splx(). In some case,
interrupts could be delayed until the next clock tick.
2003-12-03 13:20:34 +00:00
bouyer
6db04f6724 Adapt for new wdc regiosters array. Should fix port-macppc/23604. 2003-12-03 12:09:32 +00:00
bjh21
870dad0f43 Update for new world of indirect wdc registers. 2003-12-02 23:47:20 +00:00
martin
9bbe2098c6 Minor cleanup: remove unused code, sync a comment with current reality. 2003-12-02 22:44:17 +00:00
tsutsui
ab60f77a08 Declare sc_regbase as volatile, so that if_sn.c works with gcc3.
XXX We should switch to MI SONIC driver.
2003-12-02 13:19:06 +00:00
christos
f85ce17392 add stub function, so that kernel links 2003-12-02 04:53:11 +00:00
rearnsha
e3cb92a81b Avoid alignment faults in fusword and fuswintr. Also handle big-endian
systems in susword and suswintr.
2003-12-01 13:34:44 +00:00
scw
7cf5104b5a - For consistency, use cpsr_all instead of cpsr.
- Make sure IRQs are enabled before handling ASTs.
2003-12-01 08:48:33 +00:00
fvdl
c7242676d3 Don't use an alternate stack for the trace/breakpoint trap. It can be
called from userspace, and that messes things up.

Thanks to Mark Kettenis to pointing out that not using an alt stack
solved the "loop on gdb sig continuation" issue.
2003-12-01 00:00:07 +00:00
fvdl
22bb1f01c7 Reenable interrupts sooner in the idle_exit case. 2003-11-30 23:58:51 +00:00
bjh21
a5bcddc85a Add pcb_onfault handling to address exception handler so users can't crash
the kernel by passing ludicrous addresses to system calls.
2003-11-30 13:22:32 +00:00
fvdl
d8ec3cb507 Keep mxcsr and mxcsr_mask across the fake init in process_read_fpregs.
From Mark Kettenis.
2003-11-30 12:59:30 +00:00
ragge
86f405ed49 Bugfixes for emulated instructions MOVTC and MOVTUC, from Bertram Barth:
> - condition-codes should be set from (unmodified) srclen vs. dstlen
>   instead from the modified (register-) values after completion.
>
> - for MOVTUC the V-bit should be set if the esc-char was found.
>
> - the arguments for comparison should be reversed.
>
> - count is unsigned word, but for condition-codes the comparison
>   should be done with signed words (ie. N = srclen LSS dstlen)
2003-11-30 10:02:21 +00:00
simonb
9c334e285d Remove unused ddbsave define. 2003-11-30 07:41:54 +00:00
tsutsui
375036d6b3 Specify 32bit daddr_t not only for ufsboot but also libsa and all SA_PROGs.
Now bootxx and ufsboot works again.
2003-11-30 05:32:39 +00:00
manu
097771219f Implement vm_read, vm_write, and a framework for vm_machine_attribute.
THe machine dependent bit nees to be written.
2003-11-29 23:56:08 +00:00
bjh21
e8532b5727 Remove a stray "#ifndef __APCS_26__" 2003-11-29 22:27:56 +00:00
bjh21
8ed01db68c Add some commas to make a comment more readable. 2003-11-29 22:26:17 +00:00
bjh21
dd89bf7764 Use kdb_trap() rather than Debugger() to deal with unhandled undefined
instructions in the kernel, so that DDB gets a useful trapframe.  Also
panic if this happens when DDB's not around.
2003-11-29 22:21:29 +00:00
bjh21
41f83fd2b1 On a prefetch abort or an address exception in the kernel, drop
straight into DDB rather than calling panic().  This will allow DDB to
see what was actually going on at the time of the exception.
2003-11-29 22:03:21 +00:00
fvdl
142645a06a This file is dead. It has ceased to be. It has gone to meet it's maker. It
is a late file.

Any rumours of it pining for the fjords are totally unsubstantiated.
2003-11-29 00:27:58 +00:00
jhawk
e7d0c2b26a Manually moved from Attic/ in the repository since cvs failed to do so. 2003-11-28 23:57:49 +00:00