Commit Graph

31689 Commits

Author SHA1 Message Date
lukem 572fd50bc0 enable scsi_find (et al) only if NSCSIBUS > 0 2002-05-18 07:32:11 +00:00
uch 272ed861db BSD raw partition is obsolete. raw partition is changed to C. 2002-05-18 07:13:01 +00:00
lukem 491a00e92d add missing union sun3sir sun3sir; (hi gimpy!) 2002-05-18 06:59:12 +00:00
lukem 633e8d9515 minor cosmetic tweaks:
- put \r\n before OF_open message
- use  '0' + i % 10  instead of  'A' + i  to print the read block number
2002-05-18 04:24:22 +00:00
lukem 4fa13b2be7 nuke MD installboot, now that it doesn't understand the macppc
bootblocks anymore and /usr/sbin/installboot does
2002-05-18 04:06:12 +00:00
eeh 4678e53555 Fix inverted comparison. We only wan to flush the I$ on *userland* executable
mappings.
2002-05-18 00:51:15 +00:00
lukem 7f3c3f9b76 Fixes from Bill Studenmund and Allen Briggs:
- setup a 32KB (+32byte) stack, instead of 4KB stack
- cache flush: use _start instead of 0x4000, and flush 2k instead of 1k

Features (by me):
- implement:
	OF_write() (and grab "stdout" from "/chosen")
	putstrn(s,n) using OF_write(); write string s of n bytes long
	putstr(s); write fixed-sized string s
	putc(c); write char c
- add some useful messages which output the status of loading the
  stage 2 bootstrap (which is usually ofwboot)

This code now works on Bill's Beige G3!
2002-05-17 18:45:55 +00:00
jdolecek 46a7bc7d62 Force absolute jumps where necessary, newer gas generates pc-relative
jumps, which we don't want here.
Reported, suggested fix, and testing by Christian Limpach in port-next68k/16793.
2002-05-17 18:03:50 +00:00
jdolecek 8d0d2a392c make kgdb buildable again, g/c next68k/stub.c
Changes by Christian Limpach in kern/16794, with some minor adjustment
by me.
2002-05-17 06:44:03 +00:00
eeh 5f3262977c Don't use smaller trapframes. Causes more problems that it's worth right now. CVS: ---------------------------------------------------------------------- 2002-05-16 23:29:42 +00:00
eeh d3aa1ab1c4 Add a missing carriage return. 2002-05-16 23:21:55 +00:00
eeh a48bd3e3b4 Make the PCI code actually work. 2002-05-16 20:28:33 +00:00
eeh ac0772ab66 Correctly print out all out regs in the trapframe. 2002-05-16 20:27:09 +00:00
wiz 0ed95fb29e #ifdef 1 -> #if 1 2002-05-16 20:05:39 +00:00
wiz 86afeb9db4 Remove bogus stuff after #endif. 2002-05-16 19:56:13 +00:00
wiz f2fda839cd Comment out token after #endif.
XXX: Weird token here -- please double check.
2002-05-16 19:51:40 +00:00
wiz 79deb5d12d Comment out token after #endif. 2002-05-16 19:40:53 +00:00
wrstuden 1ada35e0f6 Adjust how we set up our stack. According to the ABI, we store the
return pc address at (r1). So don't initialize r1 to be outside our
stack area. Scooted it in 16 bytes to help alignment.
2002-05-16 18:02:47 +00:00
kleink 4647b339e3 Fix typo in attribute name. 2002-05-16 12:12:30 +00:00
briggs 62ee522426 Put options after include to please config(8). 2002-05-16 03:35:20 +00:00
thorpej 4daab7072a Don't access a scsipi channel's periph table directly; use
scsipi_lookup_periph().
2002-05-16 02:50:53 +00:00
uwe 1d33ded1ea Fix stupid typo in pci_decompose_tag(). 2002-05-16 01:33:53 +00:00
thorpej 204183c0fa * Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to
NULL for root PCI busses.  For busses behind a bridge, it points to
  a persistent copy of the bridge's pcitag_t.  This can be very useful
  for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
  uses OFW device nodes to enumerate the bus.  When a PCI bus that is
  behind a bridge is attached, pci_attach_hook() allocates a new PCI
  chipset tag for the new bus and sets it's "curnode" to the OFW node
  of the bridge.  This is used as a starting point when enumerating
  that bus.  Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.
2002-05-16 01:01:28 +00:00
briggs 5921f0ce6c Split GENERIC into GENERIC (for the X3 revision of the board in native
interrupt mode) and GENERIC.X2 (for the X2 revision of the board or an
X3 in legacy interrupt mode).
2002-05-16 00:20:00 +00:00
briggs a7656b0fb6 Comment out pciide stuff since it's not working yet. 2002-05-16 00:09:47 +00:00
kleink 87e54a98ec Presently lacking a better place (or actually use) for this, record
the MTX's board ID here, too.
2002-05-15 21:06:11 +00:00
thorpej dada8613e1 Let machine-dependent code specify how to enumerate the bus.
Currently, everyone uses pci_enumerate_bus_generic().
2002-05-15 19:23:51 +00:00
thorpej 11fa11094e Garbage-collect __PCI_DEV_FUNCORDER. 2002-05-15 18:37:54 +00:00
jdolecek d50107af75 Comment out QUOTA as well. Suggested by Christian Limpach
in port-next68k/16792.
Applied even tho not strictly necessary, kernel nowadays actually
links with this option too.
2002-05-15 18:23:06 +00:00
mrg 32c1ebcb8b complain if we can't get the recording drq at attach time. 2002-05-15 18:14:41 +00:00
thorpej a91677eb7b Implement pci_decompose_tag(). 2002-05-15 17:40:11 +00:00
thorpej 4fba408409 Implement pci_decompose_tag(). 2002-05-15 17:30:04 +00:00
thorpej b5e364e5a5 Implement pci_decompose_tag(). 2002-05-15 17:15:17 +00:00
thorpej 487d8b5135 (*pc_decompose_tag)() is no longer alpha specific. Move it as appropriate. 2002-05-15 17:09:58 +00:00
thorpej e19aab3751 Implement pci_decompose_tag(). 2002-05-15 17:09:04 +00:00
thorpej 90e921d836 Rename alpha_pci_decompose_tag() to pci_decompose_tag(). There *is*
some MI PCI code that uses it, and soon there will be more.  (The rationale
for not making it available previously was that it could be mis-used, but
that's true of a lot of things.)
2002-05-15 16:57:41 +00:00
uch ba21cf86c0 obsolete intrcnt[]. 2002-05-15 15:19:54 +00:00
lukem ee3c8d5e85 convert to using shared_bbinfo from <sys/bootblock.h>, and install as an
"${OBJCOPY} -O binary ..." program (rather than as ELF)
2002-05-15 13:55:38 +00:00
lukem 966b42a3e6 bootblock.h:
- unify sparc_bbinfo (1064 bytes, with 256 block entries)
  and sun68k_bbinfo (296 byte, with 64 block entries)
  into shared_bbinfo (512 bytes, with 118 block entries),
  which will be also shared by future bbinfo-using platforms
  (including macppc)
- add datestamp to *_BBINFO_MAGIC strings, to prevent installboot vs
  bootxx version skew.
- add macppc support

*/bootxx.c:
- migrate to new shared_bbinfo structure

installboot:
- add macppc support (still needs applepartmap support and testing)
- improve and add some more warnings & errors to installboot
- implement shared_bbinfo_clearboot() and shared_bbinfo_setboot(), which
  perform the majority of the work for bbinfo-using back-ends
  (rather than replicating that across multiple back-ends).
2002-05-15 09:44:54 +00:00
lukem 86671d3350 - implement putstr(), and use in various places instead of printf()
- wrap more debug stuff in #ifdef DEBUG
- for bootxx, provide minimal panic() which uses putstr() instead of printf()

bootxx is now < 7.5KB
2002-05-15 04:07:41 +00:00
eeh d295742774 Have CLKF_BASEPRI() always return false for now to prevent hardclock
from being blocked by softclock.
2002-05-14 21:21:45 +00:00
chris 56deade0b7 Make INSTALL smaller, so it fits in 4MB, removed:
USB (controller and devices)
INET6
tlp, swap it with de, as tlp still has issues on cats.
2002-05-14 19:44:57 +00:00
chris a9e806ee0c Implement scheduler lock protocol, this fixes PR arm/10863.
Also add correct locking when freeing pages in pmap_destroy (fix from potr)

This now means that arm32 kernels can be built with LOCKDEBUG enabled. (only tested on cats though)
2002-05-14 19:22:34 +00:00
soren fa3bdb57ba Add some codenames. 2002-05-14 16:21:47 +00:00
pooka 95af0aba23 include GENERIC, set TEXTADDR right 2002-05-14 15:42:25 +00:00
pooka fe422abe40 a real version of GENERIC 2002-05-14 15:38:43 +00:00
lukem 5e90f2ad0b deprecate MD installboot in favour of MI installboot in /usr/sbin 2002-05-14 14:57:14 +00:00
lukem aaa7dba035 - Enable NFS_BOOT_DHCP (as well as the existing NFS_BOOT_BOOTPARAM).
DHCP/Bootp is tried before bootparams in the MI nfs mountroot code.
- Change the order in boot.net from "bootparams then bootp" to
  "bootp then bootparams", to be consistent with the MI nfs mountroot code.

(Consistency with other NetBSD ports is good, and things still work
for sites that run bootparams but not dhcp/bootp, although I'd argue that
dhcp/bootp is much easier to setup and manage and is easier to debug
than our rpc.bootparamd...)

Per discussion with Paul Kranenburg and Matt Green.
2002-05-14 14:27:33 +00:00
yamt b70f1bdb62 - don't use ENTRY() macro for data.
- fix calculation of bit offset of DR7.
2002-05-14 14:22:33 +00:00
lukem 4369818766 Migrate alpha/pmax/vax bootblock stuff from <dev/dec/dec_boot.h> to
<sys/bootblock.h>  (leaving ultrix compat goo in the former)
2002-05-14 06:34:20 +00:00