Commit Graph

1254 Commits

Author SHA1 Message Date
thorpej 47514a31be Remove unneeded declarations of the db_machine_init() function. The
ARM ports are the only ones that actually have one, and it is about
to change.
2001-11-09 06:52:23 +00:00
thorpej 88ff68974a Changes from Martin Husemann and myself:
- Make the 32-bit SPARC profile support work with the GCC 2.95.3
  SPARC ELF compiler, which uses a different name for mcount.
- Make the 64-bit SPARC profile support header look more like the 32-bit
  SPARC header (no functional change -- 64-bit SPARC already used the
  correct mcount name).
2001-11-03 20:24:42 +00:00
tsutsui 1b197161d4 Add iha and trm at pci, and mark untested SCSI controllers "UT". 2001-11-03 17:22:39 +00:00
jmc 6d536163de Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.
2001-10-26 06:45:33 +00:00
eeh 11f7f986bd Fix bugs in previous. 2001-10-25 23:07:50 +00:00
eeh 5c34145ba7 _LP64 -> EXEC_ELF64 2001-10-25 22:03:38 +00:00
mrg 5f1e48b312 lets play catch up with thorpej.rototiller 2001-10-25 13:28:21 +00:00
thorpej 163bd42722 Per request of mrg@netbsd.org, use MACHINE_ARCH of "sparc" for 32-bit
sparc64 kernels, thus defaulting to using the 32-bit "sparc" target
toolchain.
2001-10-24 19:12:18 +00:00
thorpej 36703ab375 Clean up the 32-bit vs. 64-bit kernel configuration stuff:
- Put all options necessary to build a 64-bit kernel into std.sparc64-64,
  which can be included after std.sparc64.
- Change the logic used to enable 64-bit kernels.  The kernel Makefile now
  uses an LP64 make variable, and explicitly sets compiler flags and linker
  scripts to generate 32-bit or 64-bit kernels.
2001-10-24 18:49:38 +00:00
thorpej 9fd244e195 No need to explictly set MACHINE any more; config(8) does it. 2001-10-23 21:24:18 +00:00
pooka bbee62e254 declare variable used only with BLINK inside #ifdef BLINK to avoid
unused variable warning
2001-10-23 20:59:42 +00:00
mrg b8aa5aa437 sync with reality:
options BLINK
	options AUDIO_DEBUG
	audiocs at ebus
	audio at audiocs
2001-10-22 16:42:44 +00:00
mrg 195bc7aef4 clean up for fd changes. 2001-10-22 15:19:55 +00:00
mrg da8425b96f clean up ebus:
- kill dead dma code
	- remove icky self->dv_parent casts

audiocs @ ebus doesn't crash anymore, but it doesn't appear to work
yet either...
2001-10-22 08:09:46 +00:00
mrg 8243634795 this has moved to dev/ebus 2001-10-22 08:04:56 +00:00
mrg bf444e34ac kill a dead driver. the floppy driver will be shared with sparc anyway... 2001-10-22 08:03:01 +00:00
mrg 997fe9c917 use <dev/ebus/ebusreg.h> 2001-10-22 08:00:12 +00:00
mrg abcb6203a8 implement `options BLINK' for sparc64 for ebus & sbus. tested on a U2
(sbus) and a U5 (ebus).
2001-10-22 07:31:41 +00:00
mrg f9358dee8b use <dev/ebus/ebusreg.h> 2001-10-22 07:06:20 +00:00
thorpej 74c571e033 Normalize the sparc64 kernel Makefile. 2001-10-21 19:46:16 +00:00
eeh 3def251af0 Disable __PCI_DEV_FUNCORDER since it's now badly borken. 2001-10-18 23:47:16 +00:00
thorpej 397a84f51a Fix the semantics of __PCI_DEV_FUNCORDER so that they're actually useful:
If __PCI_DEV_FUNCORDER is defined, don't do the song-and-dance to check if
a device is multi-function; machdep code is going to tell us exactly which
functions to probe.

Note this required changing how pci_func_devorder() works in the
sparc64 PCI machdep code; now the "curnode" is assumed to point
to the bus, rather than some function (typically 0) on the device,
just as pci_bus_devorder() makes that assumption.

All this should allow the PCI code to actually locate the second
HME device on a Sun Netra t1, which is at 3,1 -- previously, the
PCI code would have missed it because there is no device at 3,0.

(Sun deserves a brick to the head for this one -- this seems clearly
out of line with the PCI spec.)
2001-10-17 22:16:41 +00:00
thorpej b8c7d53f1c Fix a typo in a DIAGNOSTIC check. 2001-10-17 18:43:04 +00:00
kleink a84ae73f33 Unify sparc{,64} headers once again; restore 32-bit sparc64 ABI. 2001-10-15 19:49:16 +00:00
kleink 7dcab228e8 Fix a pasto in the __COMPILER_INT64__-based definition of {u,}intmax_t. 2001-10-14 20:11:11 +00:00
eeh 0bda325da0 Clear the dmamap inside splhigh() protection. 2001-10-08 19:24:20 +00:00
eeh bb99dc52c7 Manage both streaming caches on psycho/psycho+. 2001-10-07 20:30:40 +00:00
mrg 65827cfc3c sync with sparc: add cdtty 2001-10-06 14:50:22 +00:00
thorpej e797da0ffb Make this match int_mwgwtypes.h (not that that header is really
correct, but they should at least be in-sync -- a PR has been
filed against int_mwgwtypes.h).
2001-10-06 01:21:40 +00:00
eeh 0e60a3377b Remove bsd_openprom.h, which is only for compatibility with the sparc port. 2001-10-05 21:53:56 +00:00
eeh 2375794907 Make OF_interpret() handle input and output arguments. 2001-10-05 21:52:43 +00:00
thorpej 34dbd19c49 Delete this file; nothing includes it, and it is simply an (incomplete)
copy of <dev/pci/ppbreg.h> anyway.
2001-10-05 17:53:36 +00:00
pooka aa236892fb include <machine/bsd_openprom.h> to make this compile with RASTERCONSOLE 2001-10-05 15:28:28 +00:00
pooka 40ca91c19c prototype rominterpret() 2001-10-05 15:27:56 +00:00
eeh cd58dffb9d Handle the situation where console input and console output go to different
devices.  (N.B. The com driver does not handle different instances as input
and output devices, so this only works for two different drivers.)
2001-10-02 20:19:33 +00:00
eeh 408b9fac30 Fix rtc_write_reg(). 2001-10-02 04:06:26 +00:00
chs 80373b7e54 don't depend on other headers to include sys/proc.h for us. 2001-09-28 11:59:51 +00:00
eeh 98ecb5b215 getprop* -> PROM_getprop* 2001-09-26 20:53:05 +00:00
eeh e3f674b10c Change a printf to DEBUG only. 2001-09-25 00:06:55 +00:00
eeh 766a9b8c9c Change bus_space_mmap() signature to the official one. 2001-09-24 23:49:31 +00:00
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
eeh c9a848a23c 32-bit kernels have 32-bit pointers. 2001-09-23 17:31:17 +00:00
chs 59c12af6f5 implement pmap_wired_count(). 2001-09-23 09:01:13 +00:00
eeh 53ebc1b431 Correct the `fast' int types. 2001-09-22 19:51:48 +00:00
mrg 343880977d don't print the alignment fault twice. 2001-09-22 00:59:30 +00:00
mrg bb9e4c2671 sync. 2001-09-22 00:58:46 +00:00
mrg 8e278c1dc1 update to reality: remove a bunch of stuff. 2001-09-22 00:58:13 +00:00
eeh a984fa914e Workaround for machines with the Acer Labs chipsets. 2001-09-21 22:08:41 +00:00
eeh ec10c45552 Define proper constants for 128-bit floating point. 2001-09-21 20:48:02 +00:00
eeh f8e6b3bc07 Correct values for different rounding modes. 2001-09-21 20:32:32 +00:00