Commit Graph

1332 Commits

Author SHA1 Message Date
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
eeh a2cda80fea Also handle FPU registers. 2001-07-07 15:16:13 +00:00
toshii 4866f1a22b Fix typo. s/extention/extension/ 2001-07-05 08:38:24 +00:00
eeh 707046cec7 New block bzero and bcopy. 2001-07-05 06:37:58 +00:00
eeh 96ee348323 New fpu handling code. 2001-07-05 06:34:56 +00:00
eeh 76159ce4fe Replace old bcopy with a much faster version. 2001-07-04 05:57:39 +00:00
chs 640937fe85 change pmap_extract() to deal with unmapped addresses.
remove some unnecessary checks for unmanaged pages.
2001-07-03 07:34:27 +00:00
martin 4c2e8da7bb Disable axidently enabled debug code to make -current compile again. 2001-07-01 09:25:33 +00:00
eeh d7b32d756c Use a newer version (still disabled) of block bcopy. 2001-06-30 19:09:38 +00:00
eeh 353e24fc8d Fix fpu save/restore code. 2001-06-30 00:09:08 +00:00
eeh 46392e4bee Fixup fpu save restore, get rid of some unused copy functions, and add
a new bcopy.
2001-06-30 00:08:15 +00:00
eeh 649ea57857 Handle proper saving of the fpstate. 2001-06-30 00:00:41 +00:00
eeh 32267affba Handle saving and restoring the fpstate properly.
(Are these functions ever called?)
2001-06-29 23:58:40 +00:00
eeh 5df2260776 Add the shorter version of block ASIs used by Sun. 2001-06-29 23:56:05 +00:00
eeh 55e676fb15 Remove another unused file. 2001-06-25 23:07:03 +00:00
eeh 47b3df529a Remove unused file. 2001-06-25 21:28:03 +00:00
eeh 6bda7d4cc7 Add an install kernel w/room for a miniroot. 2001-06-21 23:00:19 +00:00
eeh b61ff8de5f Prevent a hang if trying to pmap_protect a page with wired mappings. 2001-06-21 01:17:18 +00:00
eeh 8009aa2033 Allow multiple 4MB pages for both kernel text and kernel data.
Note: DEBUG checks will not allow accesses to the hole between
text and data segments, so you may need to update programs that
use libkvm before relocating the start of kernel data.
2001-06-21 00:24:22 +00:00
eeh ede617e6dc Allow probes to kernel addresses that generate access errors not panic the machine. 2001-06-21 00:10:49 +00:00
eeh bceb1fab42 Be a bit more consistent about returning errors. 2001-06-21 00:08:02 +00:00
wiz f3f6c5b675 `accessible' only has one `a'. 2001-06-19 12:52:20 +00:00
kleink abaced98c3 Fix context handling for 32-bit environments:
* Really pass PSR ICC bits instead of raw CCR.
* Don't touch ASI and FPRS, which are not part of the 32-bit mcontext.
Also, correct printf conversions in svr4_printmcontext.
2001-06-17 14:39:32 +00:00
kleink db52b31344 Save/restore only the FP register file as far as the 32-bit environment
is concerned; in particular, don't overrun the [mu]context.
2001-06-17 13:10:05 +00:00
thorpej 8eb3b954f1 Don't need to prototype child_return() here, it's in <sys/proc.h>. 2001-06-14 22:56:55 +00:00
simonb e5bd00e48d For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.
2001-06-08 04:48:54 +00:00
mrg ba991d978b move ev_out32() here. 2001-06-07 17:54:35 +00:00
mrg 6246dceb77 print p_pid & p_comm for alignment errors. 2001-06-07 15:31:16 +00:00
mrg 9b27fa3ff8 set the coredump32 hook. make LKM friendly. 2001-06-06 21:39:50 +00:00