Commit Graph

1360 Commits

Author SHA1 Message Date
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
bouyer e01670eb4e Convert to new ata/atapi attach structs. 2001-12-02 22:54:26 +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
lukem 399b58be96 whitespace cleanup 2001-11-20 06:00:09 +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
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
thorpej 559632229e Recolor pages as we disocver the cache sizes. 2001-09-21 19:26:20 +00:00
thorpej 68481297d1 More sunos32 fallout. 2001-09-21 17:12:22 +00:00
wiz d5e1bab856 Update copyright, fix typo and remove too many '/'.
Ok'd by eeh.
2001-09-21 15:30:41 +00:00
eeh 6138deb0d4 Handle DMA boundaries a bit better. 2001-09-21 03:04:09 +00:00
eeh 09b0bc09db Clean up page allocations. 2001-09-21 03:02:32 +00:00
thorpej bfaf142ff6 Add sunos32_setregs(), thus making sunos32 compile again. 2001-09-20 20:52:26 +00:00
thorpej e38a2e561a machine/fbio.h -> dev/sun/fbio.h 2001-09-19 18:10:32 +00:00
thorpej 92df2aecae Use <dev/sun/fbio.h>, not our own copy. 2001-09-19 16:46:49 +00:00
chs ea177e40a8 in pmap_clear_modify(), we need to clear the TLB_W bit (ie. the hardware
write-enable bit) to re-enable modify-bit emulation even if we're doing HWREF.
2001-09-18 02:23:14 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
eeh d123f46864 Enable GEM, USB and Firewire drivers. 2001-09-16 00:14:35 +00:00
mrg 002ddf2283 in pci_conf_read() and pci_conf_write(), convert all printf()'s to only
occur if SPDB_CONF (and hence DEBUG).  also convert the panic in
pci_conf_write() to a SPDB_CONF warning and a return.

this cleans up pcictl(8) support.
2001-09-15 19:32:14 +00:00
mrg 9680ade50a add coda (untested; same cdev number as sparc) and pci (tested). 2001-09-15 17:51:02 +00:00
eeh 1007095edd Only drop into the debuger if SDB_DDB is set. 2001-09-15 07:13:40 +00:00
eeh 984030b0ca Fix locking problem. 2001-09-15 07:12:22 +00:00
eeh a7283de29c Be a bit more elaborate with UE DMA errors. 2001-09-15 07:10:04 +00:00
eeh 388726b340 Added iommu_extract() for debug purposes.
Anyone caught using it for anything other than debug will be shot.
2001-09-15 06:55:50 +00:00
thorpej f23828cddd Don't declare intrhand[] here -- that's taken care of in intr.c. 2001-09-14 19:18:13 +00:00
eeh 266e77d773 Define SYSDIR if not already defined. 2001-09-13 23:19:59 +00:00
chris 0e7661f023 Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.
2001-09-10 21:19:08 +00:00
eeh 574892a487 Get rid of spurious OF_getprop(). 2001-09-10 16:27:53 +00:00
eeh 9d636228e1 Sun Blade 100 support (and some psycho fixes from Jason Wright). 2001-09-10 16:17:06 +00:00
eeh e29b0dab62 Change some debug printfs to make gcc happy. 2001-09-10 14:56:33 +00:00
mrg be4df68bb5 don't explicitly size the intrhand[] array; fixes PR#13859 from <martti.kuparinen@iki.fi> 2001-09-03 13:07:21 +00:00
mrg 3ec1b99028 place the main chunk of POWEROFSEVEN's config into the .inc file, and have
the 32 and 64 files define MACHINE_ARCH, CC, LD and AS appropriately to build
a 32 or 64 bit kernel, respectively.  this allows either to be built on a
system that can generate 32 or 64 bit code.
2001-09-02 05:53:38 +00:00
eeh 2102cef10c Add an entry for level-15 interrupts. 2001-09-02 01:45:47 +00:00
eeh 87bb8014dc Get rid of all simba references. 2001-09-02 01:18:56 +00:00
atatat 97c67a9bae Add bridge pseudo devices to GENERIC configs 2001-09-01 21:52:23 +00:00
martin c51e03edde Move struct segmap declaration inside #ifndef _LOCORE to make locore.s
compilable again.
2001-08-31 18:06:13 +00:00
eeh 5783dd5873 instance-to-path works on instances not nodes. 2001-08-31 17:10:54 +00:00
eeh ed373b780a Change data segment size calculations so we don't need to resize if the
bootloader did it for us.
2001-08-31 16:47:41 +00:00
eeh f2e3486b5b Preliminary UltraSPARC III suport (not enabled yet). 2001-08-30 22:58:30 +00:00
mrg 10516949e9 add some sun4/sun4c/sun4m compat code so we can build 32 bit kvm. (these files are not even vaguely syncable.) 2001-08-30 09:32:23 +00:00
eeh b14bf2ceef Fix incorrect parentheses. 2001-08-28 14:51:28 +00:00
mrg 71552c86a0 s/sparc/sparc64/ in a printf() 2001-08-25 15:05:22 +00:00
mrg 05403a4b92 turn off compat & some exec options 2001-08-25 15:04:26 +00:00
mrg 48fcc1a2c3 update a comment about R_UA_32 relocs. 2001-08-25 15:03:19 +00:00
chs ba2c8088f4 use pmap_k* for buffer cache pages. 2001-08-24 04:34:25 +00:00
eeh 1007ef1595 Fix backwards compare. (From Jason Wright) 2001-08-23 16:14:12 +00:00
chs 72b6b0b123 in vunmapbuf(), call pmap_*remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.
2001-08-19 18:08:30 +00:00
eeh 94751b6adc Make the kernel a tad bigger. 2001-08-18 04:55:29 +00:00
eeh 20df032dec Make lint happier. 2001-08-18 03:47:18 +00:00
mrg c22c51584c but this machine is now an ultra1. 2001-08-14 12:16:19 +00:00
mrg d8544ce59a this machine is no more. 2001-08-14 12:14:59 +00:00
jdolecek a95aa7326a g/c _remque()/_insque(); use the C version in libkern 2001-08-13 06:10:09 +00:00
eeh 76d075e3b3 Use the new in4_cksum. 2001-08-10 20:53:50 +00:00
eeh 0e7789220f Add an optimized in4_cksum(). 2001-08-10 20:53:11 +00:00
eeh 39634ee178 Clean up some debug printfs. 2001-08-09 01:03:01 +00:00
eeh 462c99aa55 pmap_kenter_pa() always creates privileged mappings.
No need to enter a no-fault mapping any more.
2001-08-09 01:01:31 +00:00
eeh 10d6680e29 Fix context masking lossage caused by last version. 2001-08-09 01:00:11 +00:00
eeh 82ff27c161 Clean up the trap code to handle the changes cause by supporting non-faulting
accesses.  Also change the parameter order so trap frames are easy to find.
2001-08-08 18:30:45 +00:00
eeh b88a8597fb This file is no longer used. 2001-08-08 00:17:00 +00:00
eeh b012dbff07 Use the new version of in_cksum. 2001-08-08 00:13:37 +00:00
eeh 57ef5c3617 Add an optimized assembly in_cksum(). (Why did I do this?) 2001-08-08 00:12:37 +00:00
eeh 7ffc44a35e Add some useful mbuf fields. 2001-08-08 00:09:30 +00:00
eeh b400579dd9 Make sure C code always has ASI_PRIMARY_NOFAULT in the %asi register so
the compiler will be happy if it ever starts generating speculative loads.
2001-08-07 00:03:27 +00:00
eeh c633b30dd4 Add some alternate spellings for ASIs.
Make sure ASI_PRIMARY_NOFAULT is always restored.
Garbage collect some old code.
2001-08-06 23:55:34 +00:00
eeh 4b569fc269 Fix bug involving small, non-contiguous dma segments.
From Manuel Bouyer.
2001-08-06 22:02:58 +00:00
eeh 140e9e72dd Add support for non-faulting loads and optimize MMU miss handling paths. 2001-08-05 18:32:30 +00:00
eeh 09c1ee004c Fix bcopy. 2001-08-02 22:41:32 +00:00
eeh afa694c704 Sync bzero w/libc version. 2001-08-02 01:47:47 +00:00
eeh 5cfec63f0d Integrate fixes from userland memset. 2001-08-01 17:01:26 +00:00
eeh 5bacff5834 Code cleanup and optimization. 2001-07-31 06:58:09 +00:00
eeh 830be13fa2 Dump some enums that make lint unhappy and we never really use anyway. 2001-07-31 06:55:46 +00:00
eeh 7950c7dffd Don't match ebus nodes not called "ebus" like the ones on hme cards. 2001-07-25 03:49:54 +00:00
eeh 57b56da169 Garbage collect. 2001-07-24 19:32:11 +00:00
eeh f13bad30d7 Use OF routines instead of internal ones. 2001-07-24 19:30:14 +00:00
eeh 24a5c4be70 Support for pc-style `rtc' real-time clocks.
Doesn't work right.  There are still issues w/register accesses.
2001-07-24 19:29:25 +00:00
eeh 64a9c222c0 Use OF_getprop instead of getprop. 2001-07-24 19:27:10 +00:00
wiz 0aa5d1cdfb s/accellerate/accelerate/ 2001-07-24 16:50:41 +00:00
eeh a25d2e82ff Update this. 2001-07-23 21:06:37 +00:00
eeh cc6781a464 Get rid of a bunch of obsolete files. 2001-07-23 18:21:26 +00:00
eeh f53d7d33ec Get rid of some debug code that really isn't all that useful any more. 2001-07-23 17:19:56 +00:00
eeh a555b32a7f Fix bootpath checks on machines with simbas. 2001-07-23 03:45:38 +00:00
eeh 1fead733d9 PCI overhaul. 2001-07-20 00:07:12 +00:00
eeh 93d4ebfb55 Don't fall over if the TOD clock could not be found. 2001-07-19 23:59:51 +00:00
eeh 7e8421fa5b Also attach apropriate devices named "serial". 2001-07-19 23:55:50 +00:00
eeh 0c4549ab71 Don't bother flushing cache lines for un-cached accesses. 2001-07-19 23:47:37 +00:00
eeh b3edeb5745 Add 'ide' to the IPL table and fix things so we don't rely on the PROM
mapping things in for us.
2001-07-19 23:40:36 +00:00
eeh 76665dc463 Small code cleanup. 2001-07-19 23:38:11 +00:00
eeh 5150b485b4 Do ignore unregistered interrupts instead of faulting. 2001-07-19 23:37:17 +00:00
eeh 12fbdb7bb3 Make bus_space_debug default to off. 2001-07-19 23:35:42 +00:00
eeh 075ed881ad Print out PID and command name for alignment faults. 2001-07-19 23:33:09 +00:00
eeh a60e790efe Make a bigger hole between kernel text and data. 2001-07-19 23:31:06 +00:00
thorpej babefc5331 Add BUS_DMA_READ and BUS_DMA_WRITE flags, that hint the back-end
at dmamap load time that the mapping will be used for a unidirectional
transfer of the specified direction.
2001-07-19 15:32:10 +00:00
eeh 76f0e59e40 Make bcopy a 32-bit friendly. 2001-07-16 18:59:33 +00:00
eeh 8210f5a2f2 Set up proper cache colors. 2001-07-12 23:13:15 +00:00
eeh 6d9a58bd0b Fix problems booting 32-bit kernels and dispatching level-15 interrupts. 2001-07-11 23:02:56 +00:00
eeh ec450c39d5 Fix math calculating the number of pages the kernel takes up.
Add some more asserts.
2001-07-11 23:00:02 +00:00
matt 0f5c5cb556 Add tlp* at pci? (for Netra X1). 2001-07-10 15:42:42 +00:00
eeh 51c13f6a22 Fix a 32-bit warning. 2001-07-10 06:06:16 +00:00
eeh 9481b31f8f Code cleanup. Add block_disable to let you turn on block set/copy routines. 2001-07-08 21:05:11 +00:00
wiz cc0b68092e Correct various misspellings of 'transfer' and inflected forms. 2001-07-08 18:06:42 +00:00
abs 01b024cd5b Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
2001-07-08 16:32:12 +00:00