christos
22de25977b
Argh, removed last ELF induced problem. We used to have syscall: in locore.s
...
and _C_LABEL(syscall) in trap.c. In ELF they are the same. Change the label
in locore.s to be _C_LABEL(_syscall).
While I am there, move the register save and restoral code used in the
*sigcode trampolines into two macros and use them instead of copying 100
lines of assembly each time.
Now everything ELF works.
1999-05-05 10:53:00 +00:00
christos
952f511570
Use -n for ELF. Using -N might work, but produces only one section.
...
No flags will not work, because it will produce a kernel loaded at 0xf0000000.
This is because the bfd ELF pagesize (in elf32-sparc.c) is 0x10000. Since
we need to load at 0xf0004000, we use -n.
1999-05-05 10:50:02 +00:00
tsubai
6168467392
Add cpu.h.
1999-05-05 10:15:53 +00:00
tsubai
9042054e51
Fix a small bug to make both IO and MEM enable bits in csr are set.
1999-05-05 08:43:53 +00:00
tsubai
dc8d07a096
Fix OFW_PCI_PHYS_HI_DEVICEMASK value.
1999-05-05 08:09:34 +00:00
chs
9528f61050
in vmapbuf(), use pmap_enter() instead of poking PTEs directly.
1999-05-05 05:25:32 +00:00
chs
39a7993efb
update resident_count and wired_count properly in pmap_kenter_*()
...
and pmap_kremove().
1999-05-05 05:21:13 +00:00
thorpej
fc645b996a
- Always config_found() PCI busses, so we know if present PCI busses
...
aren't configured.
- Grab the bus's memory space tag from the pci_bridge structure for
the bus.
1999-05-05 04:40:00 +00:00
thorpej
654b0fff46
- Completely rewrite how bus space tags for PCI space are set up. Instead
...
of hard-coding them, decode the "ranges" property of the PCI bus node in
OpenFirmware.
- Do a little cleanup, and share some more code between the Bandit/Chaos
and MPC106.
XXX The bus_space(9) implementation for macppc really needs to be
rewritten.
1999-05-05 04:37:19 +00:00
thorpej
c448c97f2b
- Add come comments.
...
- Do a little cleanup.
- Protect the entirety of pci_conf_{read,write}() with splhigh()/splx().
1999-05-05 04:32:28 +00:00
thorpej
341f87673b
Add a bus space tag for PCI memory space to the pci_bridge structure.
1999-05-05 04:26:48 +00:00
cgd
3b5a8a7db7
shuffle (sort)
1999-05-05 01:51:31 +00:00
cgd
5e1a5ebf21
clean up sigset_t manipulation macros
1999-05-05 00:57:43 +00:00
cgd
ceff265279
shuffle (alphabetize)
1999-05-05 00:48:30 +00:00
thorpej
742e477ae0
Fix msgbuf handling.
1999-05-05 00:03:10 +00:00
thorpej
dbe4c0c061
Make this compile again.
1999-05-04 23:55:27 +00:00
thorpej
c2c47b0da9
Toss contents, and just pull in <powerpc/pmap.h>.
1999-05-04 23:49:18 +00:00
thorpej
da4b05fa8e
Pull in <powerpc/reg.h>.
1999-05-04 23:46:32 +00:00
thorpej
69e521f4be
Fix void * arithmetic.
1999-05-04 23:30:21 +00:00
is
7807c9a493
Fixes PR 7489 by Olaf Seibert. Fix by Zdenek Salvet (PR 7497).
1999-05-04 20:50:35 +00:00
hwr
d313e75afe
It does not make much sense to increase a "output" counter on input.
1999-05-04 20:13:09 +00:00
thorpej
9382ef37c1
Define some things related to the PCI Bus binding to OpenFirmware.
1999-05-04 20:08:04 +00:00
hwr
3fa094f8b5
Don't let packets with a Class-D source address escape the host.
...
Fixes second half of kern/7003 by Jonathan Stone <jonathan@DSG.Stanford.EDU>.
1999-05-04 19:50:23 +00:00
christos
caa41a7d21
Fix panic and panicstr to use _C_LABEL.
...
Statuc: ELF kernel loads symbols properly, hangs in syscall while running init.
1999-05-04 17:29:22 +00:00
fvdl
4fbaa0b272
Restrict "out of CHS range" check to harddisks.
1999-05-04 17:14:55 +00:00
christos
a32f7169fc
Align struct timeval time to the same alignment requirements of a quad.
...
This broke the sparc elf kernel which in microtime uses ldd to load both
words at the same time. The a.out kernel, just got lucky.
1999-05-04 16:16:54 +00:00
sommerfe
6f883a0b1c
Include checks (under DIAGNOSTIC) to catch vnode lock leaks soon after
...
they happen (while we still know which remote op is to blame for it),
instead of later when we trip over the already-locked vnode.
1999-05-04 16:08:02 +00:00
sommerfe
623d43160b
Fix vnode lock leak in nfsrv_mknod() if to-be-created vnode already existed.
1999-05-04 16:01:37 +00:00
sommerfe
c0d15c5c7c
Count lockmgr locks held by process if LOCKDEBUG || DIAGNOSTIC.
...
(previously, it was just under LOCKDEBUG).
1999-05-04 15:58:53 +00:00
is
7470bd006a
Fix for PR 7490 by Olaf Seibert, fix mostly from PR 7497 bei Zdenek Salvet,
...
but with more verbose error messages.
1999-05-04 14:58:27 +00:00
leo
38029cf240
If the floppy has no label, fake one.
1999-05-04 14:29:44 +00:00
christos
62a2dac0d8
whitespace...
1999-05-04 13:57:19 +00:00
christos
361f7917c8
clean up old GCC.1 stuff; move common definitions to the top.
1999-05-04 13:36:44 +00:00
christos
7d5c65239e
clean up old GCC.1 stuff.
1999-05-04 13:36:10 +00:00
cgd
ff38fb6396
regen
1999-05-04 05:23:05 +00:00
cgd
e7f2a6f938
stub classcntl(). for now, it returns ENOSYS. (a stub for classcntl()
...
was suggested by Anders Magnusson <ragge@ludd.luth.se>.)
1999-05-04 05:17:22 +00:00
cgd
e24a4116bc
add a few XXXs
1999-05-04 05:11:03 +00:00
cgd
debeb21304
regen
1999-05-04 05:00:21 +00:00
cgd
ab7cdebda6
emulate shm*(), but only so far as to return ENOSYS for now (until
...
they're really needed). put them in their own file because when we
need to emulate them, they'll need a bunch of code.
1999-05-04 04:59:21 +00:00
cgd
2165378111
add a 'clean' target to nuke files built from syscalls.master, so that
...
it's easier to commit non-generated files all at once.
1999-05-04 04:56:44 +00:00
cgd
d0937ee8b6
don't pull in osf1_syscall.h
1999-05-04 02:45:35 +00:00
cgd
15e8e0d207
IPC key_t
1999-05-04 02:44:43 +00:00
cgd
759a1e3cd7
regen
1999-05-04 02:12:33 +00:00
cgd
bd7a54454d
pathconf/fpathconf
1999-05-04 02:12:15 +00:00
scottr
bdd60e98f9
Include opt_ddb.h so we will get the Debugger() prototype.
1999-05-04 00:35:37 +00:00
thorpej
3faa72bd56
Fix an ininitialized variable that the MIPS compiler caught (but the
...
SPARC, Alpha, Arm, and i386 compilers missed).
1999-05-03 23:30:27 +00:00
thorpej
a40dff106e
In INADDR_TO_IA(), skip interfaces which are not up. Revert previous change
...
to ip_input.c to check the interface status after INADDR_TO_IA().
Fix cooked up by Heiko Rupp and myself.
Fixes PR 7480.
1999-05-03 22:12:44 +00:00
hwr
33a8a5933b
Drop packets, that have a Class-D address as source address.
...
Implements the first half of PR 7003.
1999-05-03 21:14:47 +00:00
pk
f499d38511
Gain one instruction..
1999-05-03 20:56:11 +00:00
scottr
a4adbf2f86
Move initialization of the iomem extent struct from mac68k_set_io_offset()
...
to mac68k_init(), so that we're through frobbing the MMU in special ways
by the time we get there. While it doesn't actually cause a problem with
the current structure of our initialization code, it probably would have
in the future.
1999-05-03 19:10:54 +00:00