Commit Graph

29735 Commits

Author SHA1 Message Date
chs 5e3151bdf5 make this compile with DEBUG. 2001-12-14 06:06:26 +00:00
gmcgarry 64e7130584 Use bootp, to match the recent change to the bootblocks. 2001-12-14 05:56:59 +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
chs 2dfd15933e change the reference-counting of PT pages to start from zero instead of
one, so that we don't mess up the global count of wired pages by having
the page's wire_count be non-zero when we free the page.
pointed out by Michael Hitch.
2001-12-13 04:39:50 +00:00
petrov aaee6a1839 initialize all fpu registers and don't panic on user 'privileged action' 2001-12-12 19:14:47 +00:00
augustss a7d99a83b1 Add (commented out) uirda. 2001-12-12 15:32:13 +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
kleink e1f611fa76 The MPC105 does not implement the IBM reference implementation's
Equipment Present Register (I/O port 0x080c), so perform L2 cache
detection here.
2001-12-12 10:18:48 +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
kleink b52ac962b3 Add pci device. 2001-12-11 21:02:42 +00:00
kleink a5abbc5b66 Add wsfont pseudo-device. 2001-12-11 20:49:18 +00:00
ragge c7bae7c419 Add forgotten "hdc" and "rd" disks. 2001-12-11 15:14:25 +00:00
briggs 41f0fe2808 Make it possible to build a kernel that actually compiles and runs on a shark. 2001-12-11 06:00:16 +00:00
uwe 9a2a6c77e8 tabify 2001-12-11 05:54:56 +00:00
shin 13c66a24fe compilation fix. 2001-12-11 05:43:11 +00:00
briggs caf1c0abc7 include <arm/...> cousin 2001-12-11 04:50:51 +00:00
shin 7806543ebf SPEC_PLATFORM is 'defparam' (requires value). 2001-12-11 04:46:39 +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
chris 80e667c6ab Add clockctl device.
Note that someone needs to tidy this up, we've got 92 block devices, which just ain't true.  Also appears we're actually missing some, eg the ld block device.
2001-12-11 00:34:50 +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
briggs eca843c395 define __HAVE_NWSCONS for pckbc. 2001-12-10 22:42:54 +00:00
briggs 25e9f1f519 Provide basic bus_space_mmap(). Noted by self and in PR port-powerpc/14873.
This at least allows the compile to complete.  There are still Issues with
vga_pci.c's assumptions about a PC-ish environment.
2001-12-10 20:30:21 +00:00
mhitch 4c3d013b14 Add a left shift routine needed by changes in lib/libsa/ufs.c. 2001-12-10 05:31:39 +00:00
augustss 01b4e2c572 When looking for a console keyboard if usb-kbd-ihandles can't be found
then try the old name usb-kbd-ihandle.  This way my old iMac gets the
USB keyboard as console instead on the (non-existent) ADB keyboard.
Suggested by Gabriel Rosenkoetter.
2001-12-10 02:46:05 +00:00
thorpej 51535d4bf5 Add support for dumping ELF-cormat core files. 2001-12-09 23:05:56 +00:00
briggs 05b3906727 Register prefixes for tron()/troff() macros. 2001-12-09 19:07:01 +00:00
atatat f30d600bed Fix a couple of rcsids. 2001-12-09 05:02:21 +00:00
atatat b45c51b1fc Roll the rest of the ports over to the new MI kernel build machinery.
Any problems reported by testers have been fixed, and massive
cross-compiling of kernels has shown that any problems that remain
with actually building kernels are not related to this.
2001-12-09 05:00:40 +00:00
thorpej 8663a7550e Add files I mised when includes were straightened out (sorry, folks,
I had a stale kernel compile directory, which is why I missed this).
2001-12-09 03:35:08 +00:00
briggs c869df6afb The new toolchain wants to generate relocatable branches to globally-defined
symbols--even when the branches are local and would otherwise work with
bxx.b.  Compensate for this by shadowing the relevant labels with local
labels.
2001-12-09 01:43:13 +00:00
chris 3831bfec98 Improve comment on the clockswitching asm code, it doesn't use r0 at all, it just needs it to make valid asm. 2001-12-08 21:30:04 +00:00
chris ce689bde4d Fix the asm macros
The tmpx registers are now outputs, this makes them all unique.
Add the fact that cc is changed by the asm (not believed to be used but rather be correct)
Correctly specify w as an input and output register, I think this was hiding the bug below!
Allow sum to be in a different input and output register.

Correct bug in psuedo header handling for in4_cksum.  Seems that the new macros turned up a latent bug in the psuedo header handling, the code was moving a pointer forward 16 bytes twice, not found before as the ADD16 macro wasn't 100% accurate, as it didn't output w, even though it modified it.
2001-12-08 21:18:50 +00:00
manu 342f5317b0 Added IRIX signal trampoline 2001-12-08 11:15:43 +00:00
gmcgarry 0d3b140525 Update list to reflect reality 2001-12-08 04:26:10 +00:00
gmcgarry b820c21e65 Update for structural interrupt changes. No functional change. 2001-12-08 04:22:46 +00:00
gmcgarry 8dd1938ed2 softintr(9) interface for hp300 2001-12-08 04:12:37 +00:00
gmcgarry 9a9a6e8ad4 softintr(9) interface for hp300 2001-12-08 04:09:18 +00:00
gmcgarry 1ef513e6a8 Remove placeholder for event counter; it's done elsewhere 2001-12-08 04:04:49 +00:00
gmcgarry 544aceff4c - shift event counters to intr.c
- use new event counters
- align comments
2001-12-08 04:01:48 +00:00
gmcgarry 6b8f8f10c6 - rework data structures to align with generic soft interrupts interface
- shift event counters from locore
2001-12-08 04:00:22 +00:00
gmcgarry 52c6bcd104 bcopy -> memcpy
bzero -> memset
bcmp -> memcmp
2001-12-08 03:55:22 +00:00
gmcgarry aee7bee1a7 bcopy -> memcpy
bzero -> memset
bcmp -> memcmp
2001-12-08 03:34:38 +00:00
bjh21 979ce3fa95 Explicitly declare ofw_device_register(), since it's not in any header file.
Yes, this is nasty, but it's not as if this port has long to live, does it?
2001-12-08 01:22:45 +00:00
bjh21 4c64633edc Remove more acorn32 leftovers. 2001-12-08 01:16:53 +00:00
minoura 3e9a826813 Add -p option to suppress creating the partition table. 2001-12-08 00:51:03 +00:00
thorpej 205c159f0e Make the coredump routine exec-format/emulation specific. Split
out traditional NetBSD coredump routines into core_netbsd.c and
netbsd32_core.c (for COMPAT_NETBSD32).
2001-12-08 00:35:25 +00:00
chris 6bcb608ef3 Reintroduce these header files so that cats kernels can build. Fallout from Jason reverting the includes stuff. 2001-12-07 23:09:32 +00:00
bjh21 20d6672fda Change L2CR_CONFIG from defflag to defparam, since it takes an argument. 2001-12-07 12:58:43 +00:00
hannken de07b4b524 Protect `opt_sparc_arch.h'. Used from /sys/arch/sparc/stand/boot. 2001-12-07 11:00:39 +00:00
onoe d5d707cf1d Add 82801BAM as piix.
Do not initialize global variables 'pciintr_icu_tag' to NULL.
Its type is 'const struct pciintr_icu *' (typedef'ed) and gcc sometimes(!)
put it in Text region.  So force arrrange it to BSS.
2001-12-07 08:07:57 +00:00
minoura a5d9ca13b1 New target: release. 2001-12-07 06:52:14 +00:00
minoura 7bd6e6b999 Correct typo. 2001-12-07 06:51:47 +00:00
fredette b596abc4ed Picked up some old scheduler changes. Now the sun2 locore
corresponds tightly to revision 1.81 of the sun3 locore.
2001-12-07 05:24:56 +00:00
briggs f9d1ec360b 16 partitions -- agree with files.sandpoint 2001-12-07 05:20:57 +00:00
briggs 757139f41d Disable ws* until we can have a working vga* at pci. 2001-12-07 05:10:59 +00:00
briggs 43fd0c736b Add INSTALL kernel (copy from RAMDISK). 2001-12-07 05:10:17 +00:00
bjh21 8a16a572d7 Remove references to things that have disappeared in the acorn32 split. 2001-12-06 23:51:04 +00:00
simonb e7a7551978 Convert the byte_swap_* macros from GNUish ({ ... }) extensions to
static inline functions.
2001-12-06 23:25:43 +00:00
fredette 2fe9375188 Tweaked whitespace and, in comments only, added % to make this
file much easier to compare to its sun3 cousin.
2001-12-06 21:05:12 +00:00
soren 00755fc870 options space tab. 2001-12-06 16:51:31 +00:00
augustss ebdd7a70ea Uncomment IrDA devices since they seem to work now. 2001-12-06 16:35:09 +00:00
wiz d10951fb07 File contents not interesting anymore, and even partially wrong.
Remove it. Ok'd by chuq.
2001-12-06 13:56:35 +00:00
bjh21 352d57f9e1 Remove IOMD support, since NetBSD/arm32 doesn't support IOMD systems any more. 2001-12-06 11:54:07 +00:00
minoura da36b95207 Sync with mvme68k. 2001-12-06 04:13:39 +00:00
minoura bf3ea26688 Add ELF support. 2001-12-06 04:13:12 +00:00
sommerfeld 39424268c6 Use #if defined(FOO_CPU) instead of #if FOO_CPU just to be picky.
Spotted by Thomas Klausner.
2001-12-06 01:56:19 +00:00
thorpej 8d9d5216ec More complete conversion of the XMM-format tag word to i387-format
tag word.
2001-12-06 00:01:36 +00:00
atatat 52c50e165b Use more parentheses to make the compiler happy. 2001-12-05 22:16:30 +00:00
atatat d2c23d82a1 TRY_SCSI_LINKED_COMMANDS is a param, not a flag. 2001-12-05 22:15:05 +00:00
atatat 2f31dcd126 It's not called "opt_fpuemulate.h", it's called "opt_fpu_emulate.h". :) 2001-12-05 18:04:35 +00:00
augustss fe61017def Add (commented out) irframetty. 2001-12-05 16:48:03 +00:00
augustss 81f90d8cd3 Use the right name to decide if we should use irframe entry. 2001-12-05 16:10:09 +00:00
mrg c3409421aa add commented BLINK option. 2001-12-05 13:29:24 +00:00
chs 5e5ab17808 fix the sense of a MULTIPROCESSOR conditional, cpus after the first are
not configured if MULTIPROCESSOR is *not defined.
2001-12-05 05:13:50 +00:00
chs f0d9c43220 fix macppc MULTIPROCESSOR compilation. 2001-12-05 05:02:10 +00:00
lukem c0d0f0b31c convert from macros to static inlines. allen briggs confirms resultant code
is the same with -Ox, for x>0 (as expected).
2001-12-05 04:37:28 +00:00
minoura 88031f5a81 Correct LINKS to install sdboot_ufs properly. 2001-12-05 02:07:09 +00:00
thorpej 03efee5585 * Allow machine-dependent code to specify hooks for ptrace(2)
(__HAVE_PTRACE_MACHDEP) and procfs (__HAVE_PROCFS_MACHDEP).
  These changes will allow platforms like x86 (XMM) and PowerPC
  (AltiVec) to export extended register sets in a sane manner.

* Use __HAVE_PTRACE_MACHDEP to export x86 XMM registers (standard
  FP + SSE/SSE2) using PT_{GET,SET}XMMREGS (in the machdep
  ptrace request space).
* Use __HAVE_PROCFS_MACHDEP to export x86 XMM registers via
  /proc/N/xmmregs in procfs.
2001-12-05 00:58:05 +00:00
lukem 612e777b6e s/defopt/defflag/ 2001-12-04 23:14:48 +00:00
jdolecek f1243fa104 add 'esp at mca? slot ?' and 'scsibus* at esp?' 2001-12-04 20:49:40 +00:00
sommerfeld ceb358f80c Fix so these files build with options DEBUG enabled.
The change to edc_mca.c may not work as I don't have any mca hardware.
2001-12-04 20:00:15 +00:00
thorpej f7141449f2 When doing process_s87_to_xmm(), don't restore the "saved SW from
last exception"; the userland-visible fpreg structure doesn't
include it.

Pointed out by enami tsugutomo <enami@sm.sony.co.jp>.
2001-12-04 19:41:47 +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
is 0614c8a6ad Really merge in Adam Ciarcinskis spl$foo() code, which should have been
in long ago.
2001-12-04 18:54:11 +00:00
wiz b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
atatat 239aeafb2e Fixes to eliminate some compiler complaints, such as:
suggest explicit braces to avoid ambiguous `else'
suggest parentheses around assignment used as truth value
2001-12-04 15:27:35 +00:00
minoura 830cfb5ec1 Use sys/conf/Makefile.kern.inc. 2001-12-04 15:22:29 +00:00
minoura 4ee42d6a56 Ooops, previous commit removed an important line unintentionally. 2001-12-04 15:21:28 +00:00
is 647b3a2fe9 defflag lev6_defer. 2001-12-04 11:51:39 +00:00
jmc 30dcee15c0 Grab the appropriate loadfile_elf depending on machine arch 2001-12-04 11:31:10 +00:00
darrenr 8f8a0fb2c2 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:53:18 +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
bjh21 792f0d66cc Kill BBBB. boot26 has been working fine for months now. 2001-12-03 23:07:25 +00:00
jdolecek 586f0a8848 fix two bugs in mca_dma_set_ioport():
* need to specify DMA channel for DMACMD_SET_IO
* the upper byte of port was masked incorrectly

also update comment in _mca_bus_dmamap_sync() to current reality
2001-12-03 22:50:44 +00:00
bjh21 5dd767837c Make the slightly absurd case of not having keyboard _or_ mouse configured
work too.
2001-12-03 22:46:23 +00:00
bjh21 8039409128 Make it possible to build a kernel with either mouse or keyboard support
missing.  Note that it's necessary to drop both wsmouse and arcwsmouse to
lose mouse support, and analogously for the keyboard.
2001-12-03 22:37:57 +00:00
aymeric 9c7678f6f7 use _AMIGAPPC_MPTR_H_ instead of _MACHINE_MPTR_H_ so this file is included
when it has to be.
2001-12-03 21:17:05 +00:00
aymeric 5ffc3508fd remove things that were copied verbatim from powerpc_cpu.h
and #include <powepc/powerpc_cpu.h>
2001-12-03 21:15:15 +00:00
aymeric 08cdb2cfa6 add options PPC_MPC6XX to pull in generic powerpc support 2001-12-03 21:12:57 +00:00
aymeric 8729920a7b include machine/mtpr.h for SIR_* definitions 2001-12-03 21:11:27 +00:00
aymeric fe204eade0 pte_spill was renamed to pmap_pte_spill some day 2001-12-03 21:10:48 +00:00
bjh21 7f81573aa0 Disable interrupts for podule loaders from C rather than assembler, since the
former is more portable and less error-prone.  This fixes port-arm26/14811.
2001-12-03 20:54:07 +00:00
gmcgarry 56504d76c4 Fix path to clockvar.h. 2001-12-03 05:52:13 +00:00
gmcgarry fa9aa504f9 Use BOOTP by default. 2001-12-03 05:44:36 +00:00
lukem fa15b3d7b9 defparam (not defflag) PCIBIOS_IRQS_HINT. pointed out by Kevin Lahey 2001-12-03 00:10:14 +00:00
bouyer e01670eb4e Convert to new ata/atapi attach structs. 2001-12-02 22:54:26 +00:00
thorpej fbd78c8e3c Add PVR processor type fields for IBM 405GP and IBM 405L. 2001-12-02 20:11:49 +00:00
jdolecek 492b500611 Add couple hooks, needed primarily for NCR 53C90 MCA card driver:
* add flag to explicitly specify if the DMA should be done as 16bit or 8bit
* add flag to specify the DMA should happen via I/O port
* add new function mca_dma_set_ioport(), to set I/O port to be used for the
  DMA operation

Also clarify copyright (welcome to 2001 :), and couple other minor nits
2001-12-02 17:02:33 +00:00
augustss 813e73533f Add (commented out) oboe IrDA driver. 2001-12-02 16:37:24 +00:00
minoura 5684610fac .include <bsd.own.mk> for OBJECT_FMT. 2001-12-02 14:41:21 +00:00
minoura 9a342a1f55 Small message fixes. 2001-12-02 14:25:44 +00:00
minoura 90e97e1eb1 Do not install libsa.a 2001-12-02 13:25:34 +00:00
augustss 031a2873ed Add irframe and cir devices. 2001-12-02 10:45:40 +00:00
uch bd9aab9cb5 make this compile again. 2001-12-02 10:37:53 +00:00
uch 2c8098281b TX39, R5900 cache configuration. 2001-12-02 10:37:25 +00:00
minoura 1cf5c38da0 Descend to new boot programs. 2001-12-02 09:59:39 +00:00
minoura 99978cf934 Install as installboot.new. 2001-12-02 09:58:56 +00:00
manu fd6a281221 Added twomissing SYSCALL_SHIFT for indirect syscall through SYS_syscall 2001-12-02 08:28:18 +00:00
gmcgarry 6baa42f8ce Don't use dev/cninit.c, since we have our own custom implementation. 2001-12-02 01:28:54 +00:00
gmcgarry 72dc6ccf2b Type cast for bus_space_vaddr() 2001-12-02 01:20:33 +00:00
tsutsui 0ba0d05efe Use pmap_kenter_pa() rather than pmap_enter() for msgbufaddr. 2001-12-02 01:17:52 +00:00
tsutsui babc971829 #ifdef'ed out debug printf. 2001-12-01 23:39:11 +00:00
tsutsui 163114ab3c Implement pmap_kenter_pa() and pmap_kremove() properly.
This should fix `kernel diagnostic assertion "rv" failed' panic
and the problem was tracked down by tsubai.
Also add small optimization in pmap_enter() and pmap_remove(), from tsubai.
2001-12-01 23:34:52 +00:00
thorpej 72dee19a8c Reset the i80200 ICU and PMU to a pristine state very early. 2001-12-01 23:06:45 +00:00
thorpej a5a8439141 Make the snake slither in a slightly more interesting pattern that
also happens to have 8 positions (and thus has a slightly more efficient
implementation).
2001-12-01 21:23:17 +00:00
bjh21 a7297d1928 Slight tweak to AST handling logic -- on return from ast_handler(),
IRQs are enabled, so we have to disable them again before checking
astpending.
2001-12-01 17:30:07 +00:00
fredette f1673ae4dd 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.
2001-12-01 15:23:18 +00:00
bjh21 e4dac015cd Don't define get_cachetype() unless it's going to be used. 2001-12-01 14:21:18 +00:00
aymeric 6c197325c8 catch up with amiga's conf.h by adding definition of cdev_par_init 2001-12-01 14:14:58 +00:00
aymeric 4680be2d7c add wscons support so that amiga/conf.c compiles 2001-12-01 14:13:49 +00:00
aymeric dd4455abf7 catch up with "recent" new egcs check 2001-12-01 14:12:58 +00:00
aymeric e3ed0e40da do not include opt_lev6_defer.h when compiling for powerpc 2001-12-01 13:44:22 +00:00
thorpej 3fd0a58e9d On the i80200, disable ECC in the Bus Controller Unit early on; we
don't really have code to deal with ECC errors yet.
2001-12-01 06:33:40 +00:00
thorpej 216b9b2ea6 - Don't enable FIQs; nothing uses them (yet).
- Steer i80200 PMU and BCU interrupts to IRQ# (for lack of a better
  place, at the moment).
- Disable all interrupts other than external-IRQ# in the i80200 ICU;
  we don't deal with any of the others, yet.
2001-12-01 06:15:36 +00:00
thorpej 5936a89bf5 Add register definitions for the i80200 Interrupt Controller Unit,
Bus Controller Unit, and Performance Monitoring Unit.
2001-12-01 05:46:19 +00:00
thorpej a7cfcd87fd Implement a "snake" for the 7-segment display. 2001-12-01 02:04:27 +00:00
thorpej 5f8b540ed9 Remove U from the display seg constants. 2001-12-01 02:02:46 +00:00
bouyer 49aef70ae6 Add st at atapibus, now that it works. 2001-12-01 00:09:07 +00:00
thorpej e41179bfd0 Need <arm/cpufunc.h> for cache-related variables. 2001-11-30 19:43:20 +00:00
thorpej 2b08dcc43b Clarify a comment to state that it is intentional that we attach
only the Secondary PCI bus (it's the only bus which can have a
device space hidden from any PCI host on the Primary bus).

Also, use the bus number from the PPB businfo register seecondary bus
field rather than hard-coding "1".
2001-11-30 19:29:44 +00:00
thorpej e90eccc52c Clarify a comment. 2001-11-30 19:26:03 +00:00
fredette d4f3b9c987 Catch-up to revision 1.135 of the sun3 pmap. This revision
corresponds tightly to that one.
2001-11-30 18:22:51 +00:00
fredette a5c8b5d17f Implement bus_space_mmap. 2001-11-30 18:11:56 +00:00
fredette d925ceec5b vm_offset_t -> vaddr_t or paddr_t, as appropriate.
Purge register qualifiers.
bcopy() -> memcpy(), bzero() -> memset()
No longer try to protect the kernel with uvm_map_protect,
pmap_bootstrap has already done this.
Now use pmap_kenter_pa/pmap_kremove when dumping, instead
of pmap_enter/pmap_remove.
2001-11-30 18:10:27 +00:00
fredette bbb634ca9e vm_offset_t -> vaddr_t or paddr_t or db_addr_t, as appropriate.
vm_size_t -> vsize_t
Purge register qualifiers.
bcopy() -> memcpy(), bzero() -> memset()
2001-11-30 18:06:55 +00:00
fredette 94ae8e87a9 Purge vm_offset_t. 2001-11-30 17:52:33 +00:00
fredette a9847551d5 vm_offset_t -> paddr_t
Implement bus_space_mmap.
2001-11-30 17:49:10 +00:00
fredette 450c4305c1 vm_offset_t -> vaddr_t
Removed register qualifiers.
2001-11-30 17:47:04 +00:00
fredette 66e0981854 Make sure that an unlabeled device gets at least RAW_PART
in the default in-core disklabel, instead of only a single
partition, so that applying a new disklabel can work normally.
bcopy() -> memcpy(), bzero() -> memset()
2001-11-30 16:11:10 +00:00
fredette da1e437744 Implement bus_space_mmap. 2001-11-30 16:04:25 +00:00
fredette 47884ee136 vm_offset_t -> vaddr_t 2001-11-30 16:00:27 +00:00
fredette b9b98bff66 Convert to use genassym.cf and genassym.sh, as other ports do. 2001-11-30 15:58:24 +00:00
fredette af0a38f1d6 In kernel config files, now mention the options SCSI_OLD_NOINQUIRY,
NFS_V2_ONLY, and VNODE_OP_NOINLINE, commented out as appropriate
for each configuration.
Convert to use genassym.cf and genassym.sh, as other ports do.
2001-11-30 15:54:31 +00:00
chs bf5f058642 don't depend on other headers to include sys/proc.h for us. 2001-11-30 07:53:13 +00:00
enami a0ae8adf89 Declare some asm statement with output as volatile. Without this,
gcc with -march=pentiumpro produce bad code.
2001-11-30 06:53:56 +00:00
gmcgarry f6b3e39803 Don't abuse preprocessor flags. 2001-11-30 06:40:52 +00:00
gmcgarry b35b20d732 Remove clock_machdep.h. 2001-11-30 06:30:52 +00:00
thorpej 0046f5dadd - Comment-out EXT2FS, MSDOSFS.
- Uncomment FDESC, KERNFS, PROCFS,
- Add commented-out DEBUG.
- Hard-wire the location of some of the on-board PCI devices.
- Also build a "netbsd-fxp0" with the root FS hard-wired to
  the on-board Ethernet.
2001-11-30 03:01:23 +00:00
itojun e86f5a87e8 sync with latest GENERIC. 2001-11-30 02:40:57 +00:00
thorpej 2494c460a5 Use inline functions for the byte swap routines. Allows libc to build
again (-Wshadow).
2001-11-29 22:32:45 +00:00
bjh21 de5af1d829 Add "options FLASHYTHING", which causes IPL changes to trigger screen border
colour changes.  This gives quite a good real-time visual impression of what
the system's doing at reasonable overhead.
2001-11-29 22:17:16 +00:00
atatat d8382e86b5 Make sure this directory is kept. 2001-11-29 20:07:52 +00:00
atatat 5d4244e082 We need to include <uvm/uvm.h> instead of (not) including
<uvm/uvm_extern.h> so that assym.h can be built.
2001-11-29 20:04:19 +00:00
thorpej a2c8fc94fe Provide a way for platforms to move away from the old RiscPC-centric
interrupt code.  Garbage-collect some unused stuff.
2001-11-29 17:14:02 +00:00
thorpej a93f7ef419 Provide a hook for platform-specific interrupt code to specify
the "spl" cookie in the switch frame.
2001-11-29 17:12:22 +00:00
thorpej b0f775a467 Remove some overly-paranoid debug code that grovels too much
platform-specific internals.
2001-11-29 17:10:31 +00:00
simonb dfb9621f52 Nuke dk_establish() and use device_register() instead.
Tested by booting off sd0 and sd1.
2001-11-29 08:40:59 +00:00
thorpej 8ae5055ed9 Add routines for accessing the general purpose I/O facility of
the i80312 Companion I/O chip.
2001-11-29 08:27:11 +00:00
thorpej 574dba96b1 Update copyright. 2001-11-29 08:26:18 +00:00
lukem e54643e8f7 minor knf 2001-11-29 02:58:18 +00:00
lukem efc46c2fb9 minor knf 2001-11-29 02:46:55 +00:00
thorpej c5ecb8d8c5 Use the new arm_dcache_align variable to set the PCI device BHLC
register.
2001-11-29 02:26:50 +00:00
thorpej 959181a8b2 Fetch cache info from the Cache Type register on ARM7TDMI and "greater"
processors.  Report this when the processor is attached.
2001-11-29 02:24:58 +00:00
mjl 90acd67a3c Need CACHELINESIZE for libkern memset. 2001-11-29 00:16:35 +00:00
thorpej 636e9cd08b Add a "cacheline_size" argument to pci_configure_bus(). It is used
to set the cacheline size in the BHLC register.  This should be the
size of the largest D-cache line on a system.
2001-11-28 23:48:34 +00:00
thorpej 85a1db0fda Disable MRL, MRM, and MWI for now. 2001-11-28 22:39:09 +00:00
thorpej bd3e75a9df Oops, make sure to add in the physical base of the PCI memory
window when mapping PCI mem space.  (Whee, I can take out my
local hack, now).
2001-11-28 21:08:47 +00:00
manu 55c08f5ede Back out the copy of theses files to userland 2001-11-28 20:13:34 +00:00
thorpej 818da5433c Make this compile again after the cs8900 driver changes. 2001-11-28 19:32:07 +00:00
kleink e5341ee40f No point in installing svr4_machdep.h. 2001-11-28 13:14:12 +00:00
manu fa1e4588d9 We need to copy new SVR4 header files to /usr/include/sys... 2001-11-28 12:13:49 +00:00
manu a268e72f56 Add support for COMPAT_IRIX 2001-11-28 11:56:43 +00:00
manu f73e64b4be Added support for COMPAT_IRIX 2001-11-28 11:54:15 +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
kleink a83174b856 Update to reflect that unlike in m68k a.out environments, where the .align
directive is given a log2 argument, .align is given a linear argument in
m68k ELF environments.
2001-11-28 09:49:51 +00:00