pk
5237c5fb99
In cpu_fork() set tf_npc as well in case a signal is taken in child_return()
...
which will cause the values of tf_pc and tf_npc set here in cpu_fork()
to be restored and used to return to user space from sigreturn() eventually
(before that the tf_pc and tf_npc set in sendsig() will be used in
proc_trampoline()).
Also, the fork system call never uses the SYSCALL_G2RFLAG shortcut, so drop
the code handling that.
2001-12-30 18:52:54 +00:00
pk
76634d2635
Change interface between cpu_fork() and proc_trampoline() so that `tf_pc'
...
(instead of `tf_npc') contains the user-space return address. This ensures
entering the signal trampoline code correctly in case we take handled
signal during child_return().
2001-12-30 16:41:29 +00:00
martin
b506d6e135
Add PPPoE to all generic kernels that should be able to use it.
...
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
uwe
084cc22e99
Define SPARC_PCI_DEBUG only if DEBUG is defined.
2001-12-20 11:38:52 +00:00
uwe
309e659bc4
Rewrite sbus_bus_mmap to conform to new signature and unbreak bus_space_mmap.
...
This fixes the problem with X server killing the kernel by writing to
the middle of physical memory instead of the frame buffer.
2001-12-20 07:53:59 +00:00
soren
6a76b36417
Use regular read/writes for stream variant calls.
2001-12-15 12:39:55 +00:00
chs
ae5b4093b5
when counting PTEs, look at all the segments in a region, not just the first.
2001-12-15 09:00:50 +00:00
chs
5e3151bdf5
make this compile with DEBUG.
2001-12-14 06:06:26 +00:00
gmcgarry
bdd225baa1
Add a blurb to the top of all GENERIC files. This serves three purposes:
...
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
2001-12-14 05:34:45 +00:00
tv
816077b47e
Fix problem introduced with the MKMAN->NOMAN conversion.
2001-12-13 22:33:20 +00:00
lukem
b0b0a32ad7
Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
...
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
aymeric
48de85e04b
add support for OBP 3.x as seen on some JavaStation 1's
2001-12-11 21:09:52 +00:00
uwe
9a2a6c77e8
tabify
2001-12-11 05:54:56 +00:00
uwe
e51c17a95f
enable pci bus device. (hi matt!)
...
fix a whitespace nit while I'm here.
2001-12-11 04:29:26 +00:00
uwe
a2b05223ee
Add microSPARC-IIep support.
2001-12-11 04:25:58 +00:00
uwe
6767457cab
Add microSPARC-IIep support. Move sun4m bootstrap into separate
...
functions (for normal 4m and for IIep).
2001-12-11 04:21:39 +00:00
uwe
0a2b7fe7d7
Add microSPARC-IIep support. Protect mostek clock code with NMK48TXX
...
so that this file doesn't require obio, iommu and sbus to link the kernel.
Make todr_handle and establish_hostid() non-static.
2001-12-11 04:17:48 +00:00
uwe
d5a5296209
Implement microSPARC-IIep versions of sparc_interrupt4m, raise and microtime.
2001-12-11 03:46:59 +00:00
uwe
2d4ea9ba63
Add constants for microSPARC-IIep registers.
2001-12-11 03:43:22 +00:00
uwe
4924c0ae30
On ms-IIep kernel runs with PCI endian swapping turned on but we need
...
to turn it off before we pass control to PROM's repl as it expects
PCIC to be in little endian mode and would hang otherwise.
2001-12-11 03:35:02 +00:00
uwe
ee71ea68bc
microSPARC-IIep is a sun4m but with an integrated PCI controller.
...
In a lot of places (like pmap &c) we want it to be treated as SUN4M.
But since various low-level things are done very differently from
normal sparcs (and since for now it requires a relocated kernel
anyway), the MSIIEP kernels are not supposed to support any other
system. So when MSIIEP is defined - insist on SUN4M defined and SUN4
and SUN4C not defined.
2001-12-11 03:28:38 +00:00
uwe
814a815542
Export msiiep_swap_endian(onoff) from msiiep.c to turn on/off
...
automagic endian swapping performed by PCI controller. Need it in
several places where we want to enter PROM repl.
2001-12-11 03:24:46 +00:00
uwe
78eadd17b7
Attachment for MI com(4) driver at ebus.
2001-12-11 00:31:08 +00:00
uwe
81f0e10ca5
rtc (ds1287a) time of day clock at ebus.
2001-12-11 00:29:21 +00:00
uwe
255d046f95
EBus support for ms-IIep.
2001-12-11 00:25:31 +00:00
uwe
e0046f836b
EBus support for ms-IIep. This file should eventually be merged into
...
sys/dev/ebus/ebusreg.h and shared with sparc64 port.
2001-12-11 00:24:03 +00:00
uwe
de47c08727
microSPARC-IIep support.
2001-12-11 00:18:22 +00:00
uwe
02529ca11e
Fixed VA for microSPARC-IIep PCI controller.
2001-12-10 23:10:34 +00:00
thorpej
51535d4bf5
Add support for dumping ELF-cormat core files.
2001-12-09 23:05:56 +00:00
hannken
de07b4b524
Protect `opt_sparc_arch.h'. Used from /sys/arch/sparc/stand/boot.
2001-12-07 11:00:39 +00:00
lukem
612e777b6e
s/defopt/defflag/
2001-12-04 23:14:48 +00:00
thorpej
2684ea2b22
Don't declare which exec formats to support in loadfile_machdep.h.
...
Instead, give each user of loadfile() control over which exec formats
it wants to support.
2001-12-04 18:54:34 +00:00
jmc
30dcee15c0
Grab the appropriate loadfile_elf depending on machine arch
2001-12-04 11:31:10 +00:00
darrenr
860b0688ac
defopt "options SUN4*", put #define for each of SUN4, SUN4C, SUN4M and SUN4U
...
into opt_arch_sparc.h and include this wherever they are used.
2001-12-04 00:05:04 +00:00
lukem
ecb81c3f6d
- convert usage of "defopt" to "defflag" where the relevant option does
...
not support a value (e.g., it's to be used as "options FOO" instead of
"options FOO=xxx"). options that take a value were converted to
defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
lukem
9f42ccc795
use #ifdef DDB (for consistency with the rest of the kernel)
2001-11-28 05:45:27 +00:00
atatat
155e541aa2
Instead of checking for previous usage, just append to some make
...
variables. Tweak some variables to provide for more uniform defaults.
Minor adaption to makefiles for already converted ports.
2001-11-23 05:18:59 +00:00
atatat
2bf2c362fb
The bridge(4) pseudo-device no longer requires the port to
...
__HAVE_GENERIC_SOFT_INTERRUPTS, so add it back to all GENERIC configs.
2001-11-23 05:00:22 +00:00
uwe
1eebb3fde3
Add patches for Mr.Coffee with OBP2.
...
Miscellaneous cosmetic changes.
2001-11-22 04:18:28 +00:00
jmc
5ac54229c9
Don't make the symlinks on clean rules as well as obj rules. Breaks r/o source
...
trees that haven't gotten to the make obj recursion part of make build
otherwise.
2001-11-22 00:14:20 +00:00
uwe
8390d1903a
Skip relocation if OpenFirmware already loaded us at the right address.
2001-11-21 21:38:00 +00:00
wiz
1fd7eeefcd
"than" instead of "then".
2001-11-21 19:14:19 +00:00
lukem
03aef4723c
cleanup:
...
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
2001-11-20 12:56:17 +00:00
lukem
99bccc3cab
- pull in opt_kgdb.h where necessary
...
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for options KGDB_DEVNAME="\"com\""
- use correct quotes for options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup
2001-11-20 08:43:19 +00:00
atatat
d5de3c2fb2
Abstract out a large chunk of the kernel build machinery so that new
...
build features (such as ross's DEBUGLIST) can easily be applied to all
ports. This should reduce the complexity of each port's kernel
Makefile considerably. Line counts:
227 arch/i386/conf/Makefile.i386.orig
98 arch/i386/conf/Makefile.i386
227 arch/alpha/conf/Makefile.alpha.orig
99 arch/alpha/conf/Makefile.alpha
219 arch/sparc/conf/Makefile.sparc.orig
102 arch/sparc/conf/Makefile.sparc
215 arch/vax/conf/Makefile.vax.orig
102 arch/vax/conf/Makefile.vax
253 conf/Makefile.kern.inc
Roll i386, alpha, sparc, and vax over to the new build machinery.
2001-11-16 00:23:02 +00:00
soren
662f877587
MAXSLP is defined to be a machine-independent scheduling parameter,
...
so move it into sys/param.h.
2001-11-15 18:06:11 +00:00
uwe
0c392b9e2f
Move dvma_cachealign to cache.c where it belongs and declare it in
...
cache.h, so that kernel can be linked without iommu support (for the
sake of microSPARC-IIep that has a very different iotlb).
2001-11-13 03:04:50 +00:00
pk
4f1fe56be8
Remove redundant declarations.
2001-11-12 16:32:25 +00:00
scw
45e7238a02
Bump the version numbers of all bootloaders which use loadfile_elfXX() now
...
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +00:00