chs
b744097a5f
allow writing to write-only mappings. fixes PR 3493.
2002-02-14 07:08:02 +00:00
martin
1b4393c5db
Cast/format fix to make this build on 32bit kernels.
2002-02-12 20:50:47 +00:00
wiz
3cc2ef9997
Update description for icsphy.
2002-02-10 17:36:52 +00:00
mrg
bf06edf092
give splode 8 raid devices
2002-02-10 15:49:39 +00:00
eeh
48198ba7ca
Fix microsecond calculation in microtime.
2002-02-09 05:01:39 +00:00
eeh
c068b28bac
Increase NMBCLUSTERS.
2002-02-09 04:58:53 +00:00
eeh
c42bdc6b14
Correctly take into account the satck bias in CLKF_INTR().
2002-02-09 04:50:13 +00:00
eeh
424177d21b
Provide more info in psycho_ue.
2002-02-08 20:04:14 +00:00
eeh
bfba946595
Handle the case where a DMA operation wraps from the end of a page to the
...
beginning of the same page properly by double-mapping that page.
2002-02-08 20:03:45 +00:00
eeh
4daea20c93
Move a brace so this will compile w/o DEBUG.
2002-02-08 00:47:04 +00:00
eeh
d3d818a6f4
Fix register allocation in microtime().
2002-02-07 22:23:01 +00:00
eeh
6390142ec0
Make bus_space_barrier() an inline instead of a function vector.
2002-02-07 21:36:54 +00:00
eeh
92ef550481
Overhaul iommu_dvmamap_load_raw().
2002-02-07 21:35:26 +00:00
eeh
e16b1e8bf6
Add a sound driver for Blade 100s (which doesn't seem to do much. All I
...
get is the sound of silecne.)
2002-02-05 01:55:49 +00:00
eeh
f0684202f9
Shift the UPAID in the correct direction.
2002-01-29 01:15:50 +00:00
jdolecek
6d265bd894
add options PIPE_SOCKETPAIR to individual kernel configs
...
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
2002-01-27 13:23:08 +00:00
mrg
81cfc30e85
turn on BLINK & bridge
2002-01-22 01:23:18 +00:00
jdolecek
ff8305bbac
Switch to MI dev/md_root.c for archs which don't have any special
...
memory disk hooks (i.e. everything except atari).
2002-01-21 21:56:57 +00:00
eeh
40f4f638ed
More 32-bit cleanup.
2002-01-21 18:50:36 +00:00
mrg
319101532e
- reduce INSTALL size by 2.5MB.
2002-01-21 13:47:25 +00:00
mrg
61d679b8c1
convert sparc64 to use `makefs' rather than vnd/newfs/mount. this severely
...
cleans up a lot of the processing here.
XXX: note that the sparc64 "INSTALL" kernel's file system has a copy of
GENERIC in /netbsd. fix this shortly.
2002-01-20 05:57:10 +00:00
oster
39b858e3bf
Add new RF_* options for RAIDframe bits that are no longer built by default.
...
While we're here, enable RAIDframe (and RAID_AUTOCONFIG) by default for
architectures that I'm comfortable can deal with it being on by default.
Also: bump the number of 'raid' devices from 4 to 8, since 4 seems to
be insufficient in practise.
2002-01-19 18:45:06 +00:00
mrg
194652a3c1
update to reality, even if it still does not quite work.
2002-01-19 14:49:18 +00:00
eeh
85bf931596
Be more tolerant of unaligned stack pointers.
2002-01-17 22:23:47 +00:00
eeh
b60e750cca
Enable block insns in bcopy and bzero.
2002-01-17 02:26:37 +00:00
eeh
c2d74dc6cd
In bcopy use 32-bit comparisons in 32-bit kernels.
2002-01-16 22:44:48 +00:00
eeh
14dced409e
Use correct calculation for the trapframe in softtrap for ILP32.
2002-01-16 18:52:35 +00:00
eeh
9ed29324e3
Fix ILP32 bug.
2002-01-16 18:49:22 +00:00
eeh
59339eac04
Make PHYS_ASI() also recognize little-endian ASIs.
2002-01-14 20:44:30 +00:00
eeh
cc61f43486
Use a more efficient PIC_PROLOG().
2002-01-14 16:37:36 +00:00
eeh
79cc3b0d73
Set the interrupt retry timer to 0xff.
2002-01-14 16:30:31 +00:00
manu
5f90ae55b5
Added clockctl
2002-01-12 14:52:40 +00:00
eeh
4d28a1937c
Trap types should be printed in hex.
2002-01-12 01:07:00 +00:00
briggs
e44b2beeac
Add OPIOCFINDDEVICE to match dev/ofw/openfirmio.[ch].
2002-01-10 20:38:11 +00:00
briggs
03bd9a6a52
In OPIOCNEXTPROP: if we are at the last property, set the buffer length to
...
0 instead of setting it to an uninitialized value (len).
2002-01-10 16:04:43 +00:00
briggs
8a2ab2e5f8
Use nextsibling() and firstchild() instead of (unset) promvec.
2002-01-10 06:21:53 +00:00
mrg
3f49c27162
clean up
2002-01-03 06:43:23 +00:00
mrg
5d06ed3c94
move sparc specific ioctl handling (fb & openprom) into arch/sparc64.
2002-01-03 02:29:39 +00:00
chs
9451559ef4
pmap_page_protect(VM_PROT_NONE) must remove all mappings in the PV list,
...
even if they are wired. we need to be able to remove all mappings to
pages that are being freed due to (eg.) file truncation.
2002-01-02 00:51:33 +00:00
matt
873f33f78e
Make the same change to icache/dcache size calculation as was done to ecache.
...
Fixes PR 12844.
2001-12-31 16:26:10 +00:00
matt
0bc218f05c
When determining ecache size, try using ecache-size. if it doesn't exist,
...
fallback to the old method (ecache-nlines * ecache-linesize).
2001-12-31 07:30:46 +00:00
augustss
dbd7c7b7bc
Make uhidev change.
2001-12-30 13:28:13 +00:00
martin
b506d6e135
Add PPPoE to all generic kernels that should be able to use it.
...
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +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
petrov
aaee6a1839
initialize all fpu registers and don't panic on user 'privileged action'
2001-12-12 19:14:47 +00:00
thorpej
51535d4bf5
Add support for dumping ELF-cormat core files.
2001-12-09 23:05:56 +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
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
mrg
c3409421aa
add commented BLINK option.
2001-12-05 13:29:24 +00:00
lukem
612e777b6e
s/defopt/defflag/
2001-12-04 23:14:48 +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
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