petrov
0e426c8d8b
Port Jason L. Wright's sab82532 driver. From OpenBSD.
2002-08-16 08:47:13 +00:00
petrov
e36bdc8829
cpu_fork: clear PSTATE_PEF for a child process, reviewed by thorpej
2002-08-13 05:08:19 +00:00
mrg
828c2ebb9f
general clean up. should not affect anything. (this is part of a patch
...
from eeh to reduce frivolous cache flushes.)
2002-08-12 12:04:31 +00:00
briggs
0b956d0b8b
Implement pmc(9) -- An interface to hardware performance monitoring
...
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.
pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
2002-08-07 05:14:47 +00:00
mrg
117d4dd965
clean up esp & isp attachment lines.
2002-07-29 14:35:44 +00:00
mrg
321856e31b
merge with sparc.
2002-07-29 07:07:15 +00:00
mrg
154a2d2a42
use <sparc/foo.h> where appropriate. now these files become very
...
very difficult to get out of sync. add bootinfo.h and promlib.h
(using the same method) so that sparc64 headers can build sparc
stand (not yet finished.)
2002-07-20 11:52:21 +00:00
mrg
e723e36e79
create a "sparc" symlink as well. sync kernels.
2002-07-20 11:48:17 +00:00
mrg
950cb7a7a6
install "sparc" includes for sparc64 as well
2002-07-20 11:46:14 +00:00
thorpej
3912e469dd
Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
...
be properly used by any misc. cloning device. While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.
2002-07-19 16:38:14 +00:00
wiz
e00173a7f2
Spell 'should' correctly.
2002-07-18 11:59:06 +00:00
thorpej
29b1d0613b
Remove CPU_ISSUN4MOR4U, CPU_ISSUN4OR4C, and CPU_ISSUN4COR4M.
2002-07-17 04:56:49 +00:00
fvdl
b0ba7094b2
netbsd32_sysarch moved here.
2002-07-07 23:28:04 +00:00
abs
eb73becae2
Ensure all INSTALL config files consistantly include PIPE_SOCKETPAIR,
...
MALLOC_NOINLINE, and VNODE_OP_NOINLINE. The exceptions are when they
include another config files that already defines the options, or if
they are for an embedded board, just define a few extra options, and
do not already define PIPE_SOCKETPAIR.
2002-07-05 13:40:10 +00:00
thorpej
011d4d5f44
Add kernel support for having userland provide the signal trampoline:
...
* struct sigacts gets a new sigact_sigdesc structure, which has the
sigaction and the trampoline/version. Version 0 means "legacy kernel
provided trampoline". Other versions are coordinated with machine-
dependent code in libc.
* sigaction1() grows two more arguments -- the trampoline pointer and
the trampoline version.
* A new __sigaction_sigtramp() system call is provided to register a
trampoline along with a signal handler.
* The handler is no longer passed to sensig() functions. Instead,
sendsig() looks up the handler by peeking in the sigacts for the
process getting the signal (since it has to look in there for the
trampoline anyway).
* Native sendsig() functions now select the appropriate trampoline and
its arguments based on the trampoline version in the sigacts.
Changes to libc to use the new facility will be checked in later. Kernel
version not bumped; we will ride the 1.6C bump made recently.
2002-07-04 23:32:02 +00:00
eeh
c05c5884e6
Turn on parity checking for the PCI bus.
2002-06-29 02:35:22 +00:00
eeh
debc8b26aa
Fix ktrace call for 32-bit kernels.
2002-06-25 17:37:03 +00:00
eeh
691c4d1179
Fix compilation problems in DEBUG code.
2002-06-24 18:48:13 +00:00
thorpej
f427b80c27
Add ENTRY_NOPROFILE().
2002-06-24 01:13:34 +00:00
eeh
73fd336386
Use paddr_t for avail_start and avail_end so we can handle machines with
...
RAM above the 2GB mark.
2002-06-21 02:57:29 +00:00
eeh
fb5318516e
The FFB interrupt mapping registers need to compare IGN as well as INO since
...
they are totally programmable.
2002-06-21 02:48:42 +00:00
eeh
5c6bf5ad03
Overhaul streaming buffer handling:
...
sysio streaming buffer flushes write a single 8-byte aligned 8-byte
value.
psycho streaming buffer flushes write a 64-byte aligned 64-byte block.
So separate out the streaming buffers into their own structure and pass those
in to all iommu operations. This also means we only flush the correct
streaming buffer for psycho rather than needing to flush both just in case.
2002-06-20 18:26:23 +00:00
eeh
dcabee4011
Get ktrace working once more.
2002-06-19 23:32:01 +00:00
grant
30dfd0761f
remove extraneous #endif from last commit, make this compile again.
2002-06-19 04:58:32 +00:00
christos
3b50728cf4
MD systrace gluons.
2002-06-17 16:32:57 +00:00
lukem
fde6ae6f04
Enable "pseudo-device clockctl" in all kernels, except
...
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
2002-06-17 05:14:02 +00:00
eeh
863fc84f4d
Provide the correct architecture for HW_MACHINE_ARCH so things like
...
"sysctl -p" can tell they are in 32-bit land.
2002-06-14 18:28:19 +00:00
eeh
923804f36a
Fix hardware watchpoints and add an extract function so we can easily find
...
the physical addresses of things (to feed to the physical watchpoint).
2002-06-14 17:12:05 +00:00
eeh
efad9de6ca
NEVER CAST REFERENCE PARAMETERS!!!!!
2002-06-14 00:11:07 +00:00
eeh
9984a8bbcc
Fix some corner cases in bus_dmamap_load_mbuf().
...
From Takeshi Nakayama <tn@catvmics.ne.jp>
2002-06-12 17:06:15 +00:00
eeh
c08cac5019
Use the correct bus handle to generate the handle for the streaming buffers.
2002-06-12 00:43:22 +00:00
eeh
e98ab1d613
Fixes for the rtc clock on Netra X1 machines from PRs 15611 and 16816
...
by Takeshi Nakayama.
2002-06-11 23:33:27 +00:00
eeh
715641d6a1
Do not truncate the kernel pmap physical address to an `int' before
...
sticking it in the context lookup table. Fixes a booting issue on
Netra T1125s.
2002-06-11 21:10:03 +00:00
eeh
63260bae95
Fix yet another inverted comparison.
2002-06-07 19:31:04 +00:00
eeh
751dd1000c
Shave 10% off the time needed to flush the D$ through a bit of instruction
...
reordering.
2002-06-07 19:29:38 +00:00
martin
2d7d715810
Add audiocs at ebus.
2002-06-05 21:42:31 +00:00
eeh
e7fe9c7c35
Handle improperly aligned stack pointers more cleanly.
2002-06-05 18:11:18 +00:00
thorpej
d941ddfee0
Don't use -traditional-cpp if HAVE_GCC3.
2002-06-04 21:39:09 +00:00
eeh
4ff7000d80
Fix the fork trampoline to properly use the supplied tstate.
2002-06-04 15:04:08 +00:00
eeh
abb7b6a965
Clear the P_32 flag when exec-ing native binaries.
2002-06-04 14:48:09 +00:00
eeh
587856dfdd
Make the code that matches boot devices much more flexible so it handles
...
device classes as well as funny names for matching. This should allow
us to properly recognize we're booted from a SCSI disk on a PCI controller.
2002-06-04 14:44:34 +00:00
eeh
30cc4dc796
Pass on the P_32 flag on fork and support fork syscall returns using
...
%g7 as the completion address.
2002-06-03 18:08:43 +00:00
drochner
d2b9876081
move initialization of the "struct pglist" returned by uvm_pglistalloc()
...
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
2002-06-02 14:44:35 +00:00
thorpej
10e4eb9d0b
Make this work with an ISO C preprocessor.
2002-05-31 20:01:28 +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
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
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
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
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
thorpej
a91677eb7b
Implement pci_decompose_tag().
2002-05-15 17:40:11 +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
eeh
e8ff5b27c8
Trapframes only have locals or ins if the kernel is compiled DEBUG.
2002-05-14 02:34:14 +00:00
eeh
1d52c1bd50
Only save locals and ins in trapframes for DEBUG kernels.
2002-05-14 02:23:07 +00:00
eeh
fc5fdc8819
Add rtc@ebus.
2002-05-13 22:38:01 +00:00
eeh
7b70e3b8fb
Fix off-by-one error in iommu_dvmamap_load_raw() where if a DMA segment
...
has just one byte on a page the page is never mapped into the IOMMU.
2002-05-13 21:01:15 +00:00
matt
0a6d35b7ed
Nuke local extern label_t *db_recover; it's now in <ddb/db_extern.h>
2002-05-13 20:30:07 +00:00
matt
c27fdbcdbe
Don't panic is no class-code, just return. Needed for NetraX1.
2002-05-13 13:59:21 +00:00
lukem
9e4faf5cb2
no more ../../sparc/stand/installboot
2002-05-07 12:45:18 +00:00
eeh
2a4ecb6335
Add a flag for ofpci to let psycho chose between pci and ofpci.
2002-05-06 22:41:10 +00:00
eeh
d87653c0d2
Switch to ofpci.
2002-05-06 22:34:40 +00:00
eeh
91c28a3626
Add code to attach ofpci.
2002-05-06 22:29:22 +00:00
eeh
ba4db702d5
Recognize `ofpci' as a PCI bus.
2002-05-06 22:20:57 +00:00
eeh
19fcb9e555
Fix printing during attach and get rid of pci_cd that's provided by the linker.
2002-05-06 22:20:07 +00:00
eeh
24954ac8ae
Add ofpci_make_tag().
2002-05-06 22:18:51 +00:00
eeh
2ec18b07b9
Provide pci_cd if needed.
2002-05-06 22:12:43 +00:00
eeh
1805506872
Add ofpci and ofppb.
2002-05-06 19:48:05 +00:00
eeh
e60dcd0a0b
Add ofppb to match ofpci.
2002-05-06 19:40:20 +00:00
eeh
509fa464af
Add the ofpci driver.
2002-05-06 19:39:51 +00:00
eeh
5d47d866f7
Only put interrupts into the list for that interrupt level if the handler
...
is not shared. Otherwise put the shared interrupt dispatcher in the list.
2002-05-06 19:19:48 +00:00
martin
9ccc186245
Add PCMCIA support (for nell at sbus and pci cardbus bridges)
2002-05-05 11:22:19 +00:00
thorpej
80303e7e64
Add .register directives to appease newer gas.
2002-05-05 08:15:15 +00:00
thorpej
e9bb69ab48
Add .register directives to appease newer gas.
2002-05-05 06:07:42 +00:00
kleink
c1477b6161
Add some comments to the CPP conditionals controlling the trap macro
...
definitions, to ease navigation somewhat.
2002-05-04 17:19:25 +00:00
thorpej
8606fff875
Don't define _LP64 here.
2002-05-03 17:56:29 +00:00
thorpej
9cbd451a98
Revert revision 1.20.
2002-05-03 17:55:55 +00:00
eeh
be9ab3e5db
Provide _LP64 definition if we are generating LP64 binaries.
2002-05-03 00:06:55 +00:00
atatat
d1b3852365
Add the INCLUDE_CONFIG_FILE option to all config files. In config
...
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
2002-04-25 15:06:20 +00:00
eeh
dcb399fc7c
Don't need to flush the d$ for MMU bypass accesses.
2002-04-24 23:54:24 +00:00
eeh
c54358008e
Remove unused file.
2002-04-18 17:24:09 +00:00
eeh
4acff51bdc
Cleanup a bit and get rid of unnecessary cache flushes.
2002-04-18 17:19:12 +00:00
eeh
55bcc7df8b
Don't include cpuvar.h.
2002-04-18 16:37:26 +00:00
eeh
bb8f4cc510
Calculate NBPG from PGSHFT.
2002-04-18 16:31:47 +00:00
mycroft
a03e2b5e1e
Remove TLP_MATCH_* options.
2002-04-17 02:26:48 +00:00
mycroft
558b4fb278
Switch from de to tlp by default.
2002-04-17 02:22:41 +00:00
eeh
8c0f10ff03
Add icache_flus_page() to go with dcache_flush_page().
2002-04-16 23:13:13 +00:00
eeh
690711542d
We want pages modulo 16K not modulo 32K.
2002-04-16 23:11:20 +00:00
eeh
cd1c5cd9c5
Make lots of routines profile-friendly and get rid of some cruft.
2002-04-16 23:09:37 +00:00
thorpej
eedd94475c
* Move the mii_bitbang attribute into dev/mii/files.mii
...
* Pull in dev/mii/files.mii from conf/files, rather than playing
the magic "files include order" dance in N machine-dependent
configuration definitions.
2002-04-16 20:50:16 +00:00
gmcgarry
6e066ba77a
Add commented-out USERCONF option. Mainly useful for install media
...
and can be optionally enabled based on miniroot and ramdisk size
requirements.
2002-04-12 08:10:45 +00:00
eeh
15d074fe26
Add a nice 64-bit mstohz() and clean out some cruft.
2002-04-08 21:05:30 +00:00
jmc
457298dd98
Change to native_to_svr4_signo after recent change in
...
compat/svr4/svr4_signal.h
2002-04-02 10:25:21 +00:00
lukem
d213d804f7
Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
...
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
2002-04-02 05:30:34 +00:00
christos
83c2f7aaf5
compat signal array renaming.
2002-03-31 22:21:02 +00:00
bouyer
1027cb3105
tl* at pci? now works.
2002-03-29 20:01:50 +00:00
mrg
40fa931dcb
remove vnd. use -mcpu=ultrasparc.
2002-03-25 05:54:51 +00:00
petrov
9305f3556c
Remove excessive declarations.
2002-03-21 22:50:09 +00:00
petrov
8805e1b92d
Not needed debug stuff deleted.
2002-03-21 06:56:31 +00:00
eeh
e9c8c1eee3
Add missing semicolon.
2002-03-21 01:19:41 +00:00
eeh
ecdc1104a9
Add missing brace.
2002-03-21 01:18:42 +00:00
eeh
e6bf9fbdd2
Cleanup.
2002-03-21 01:17:08 +00:00
eeh
7fba99a774
Cleanup.
2002-03-21 00:48:43 +00:00
eeh
a1649fc334
Parenthesise macro arguments.
2002-03-21 00:43:42 +00:00
eeh
47ef6a5146
Overhaul bus space.
...
bus_space_handle_t now holds an address and two ASIs, one for normal accesses
and one for streaming accesses. This allows to map individual handles
different ways, so some can use MMU bypass accesses and others use virtual
addresses. bus_space_map() will now create handles that use bypass accesses
unles BUS_SPACE_MAP_LINEAR is passed in. So only pass in BUS_SPACE_MAP_LINEAR
if you absolutely *need* to use bus_space_vaddr(). This removes at least one
extra level of indirection and should reduce TLB misses.
32-bit kernels have problems accessing 64-bit addresses, so they always use
virtual addresses.
2002-03-20 18:54:46 +00:00
eeh
bd48e83999
DDB_ONPANIC now needs a number.
2002-03-20 18:43:53 +00:00
eeh
bd22d9d0f1
Add PTE_WIRED bit to keep track of wired pages.
2002-03-20 18:41:53 +00:00
eeh
8ccad96d54
Add sbus_promaddr_to_handle() to convert a prom address to a bus_space_handle_t.
2002-03-20 18:39:44 +00:00
christos
7e277b5782
kill remaining PS_STRINGS instances.
2002-03-20 17:59:22 +00:00
eeh
c34c58d78e
Using PSR_PIL in conjunction with the IPL results in a comparison that is
...
always true.
2002-03-19 19:47:57 +00:00
eeh
7a49cca31a
Fix up compiler options:
...
1) Get things right for 32-bit kernels
2) Always use medium any memory model for 64-bit kernels for the moment.
2002-03-19 18:10:33 +00:00
atatat
31144d9976
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
...
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
martin
94881fb123
Rename ISDN devices, per discussion on tech-kern. The network devices
...
become ippp (ISDN ppp) and irip (ISDN raw IP). The character device now
are called: /dev/isdn (isdnd <-> kernel communication), /dev/isdnctl (dialing
and other control), /dev/isdntrc* (tracing), /dev/isdnbchan* (raw B channel
access, i.e. for user land PPP) and /dev/isdntel* (telephone devices, i.e.
for answering machines).
2002-03-16 16:55:51 +00:00
mrg
f87760870d
tell newer binutils that our use of %g2 and %g3 is OK here.
2002-03-16 15:15:33 +00:00
mrg
f259d9d73e
this file is no longer used.
2002-03-16 14:03:00 +00:00
mrg
0eed6807d4
convert to using <dev/ebus/ebusvar.h> and it's struct member names.
2002-03-16 14:00:00 +00:00
eeh
2db5a5e82f
Get PCI working with the new bus_space*.
2002-03-15 07:06:23 +00:00
eeh
0923e659b7
Cleanup MMU initialization to prevent hangs.
2002-03-15 07:02:24 +00:00
eeh
01702c713d
Make pmap_protect() on wired mappings DTRT. Needed to toggle write protection
...
on the clock registers.
2002-03-14 20:59:19 +00:00
eeh
67d564afec
bus_type_t has gone away.
2002-03-14 20:57:37 +00:00
eeh
3dd69b853f
bus_space_map2() has gone away.
2002-03-14 20:55:27 +00:00
eeh
01fb3f72f5
sbus_bus_map() no longer has a preferred vaddr parameter.
2002-03-14 20:54:18 +00:00
eeh
ce92edb48a
bus_space_map2() no longer exists.
2002-03-14 20:51:35 +00:00
eeh
98d13341c0
bus_space_map2 no longer exists.
2002-03-14 20:50:13 +00:00
eeh
77de9a3aca
Get rid of bus_space_map2().
2002-03-14 20:46:11 +00:00
uwe
a05702eaac
Rework the driver to add EBus DMA support and improve APC DMA support.
...
Audio-related stuff is left almost intact.
* support audiocs at ebus playback and capture
tested on krups and u5 (thanks, martin)
* make first attempt at supporting audiocs at sbus capture
* nb: full-duplex is not tested
* while here, fix CSAUDIO_MONITOR_MUTE to be of CSAUDIO_MONITOR_CLASS
i.e. outputs.monitor.mute -> monitor.monitor.mute
Ok by pk, eeh.
2002-03-12 04:48:28 +00:00
chs
b0263218b6
override cn_trap() with zs_abort() so we can drop to the monitor
...
if there's no DDB. fixes PR 12547.
2002-03-11 07:11:26 +00:00
lukem
cd19d52695
* rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
...
are now consistently named
* fold opt_mdsize.h into opt_md.h
2002-03-10 19:56:37 +00:00
thorpej
a180cee23b
Pool deals fairly well with physical memory shortage, but it doesn't
...
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map). Try to deal with this:
* Group all information about the backend allocator for a pool in a
separate structure. The pool references this structure, rather than
the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
to become available, but will still fail if it cannot callocate KVA
space for the pages. If this happens, carefully drain all pools using
the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
some pages, and use that information to make draining easier and more
efficient.
* Get rid of PR_URGENT. There was only one use of it, and it could be
dealt with by the caller.
From art@openbsd.org .
2002-03-08 20:48:27 +00:00
chs
759dc33636
make this compile without DDB.
2002-03-08 06:03:50 +00:00
tsutsui
98c71d1fdd
Fix calculation of dma segment length
...
when the DVMA range is crossing the boundary.
Approved by eeh, and fixes port-sparc64/15200.
2002-03-06 17:12:51 +00:00
tsutsui
3c8b0446fe
Change type of dumpmag to u_int32_t since it is actually
...
a 32bit unsigned magic number.
As per discussion on tech-kern, and fixes port-sparc64/11949.
2002-03-06 13:10:18 +00:00
simonb
9bcc70fa1d
Don't cast argument to ffs() to long.
...
Per discussion on port-alpha, noticed by Robert Elz.
2002-03-05 09:40:38 +00:00
mrg
ccc760f047
check _KERNEL_OPT for opt_ddb.h
2002-03-02 12:28:16 +00:00
martin
f801cd463b
Rename EBUS_PADDR_FROM_REG uses to EBUS_ADDR_FROM_REG.
2002-03-01 11:51:00 +00:00
martin
7d9d648a64
For aesthetical reasons use bus_addr_t instead of paddr_t in the BUS_ADDR
...
makro. Requested by uwe.
2002-03-01 11:34:36 +00:00
martin
feaf0ddd87
Cast the "io" parameter of BUS_ADDR to paddr_t before it gets shifted.
...
This makes this makro work with smaller values passed for io. No functional
change.
2002-03-01 07:19:29 +00:00
simonb
4324f37586
Use "#define<tab>".
2002-02-28 03:17:23 +00:00
pk
f478419a29
Calling pmap_zero_page() (in #if DEBUG section) from pmap_bootstrap() hangs
...
an E250; comment it out.
2002-02-27 16:09:51 +00:00
christos
e8116a8f5b
- Use DEV_ constants, instead of documenting the numbers!
...
- Delete cdev_decl(mm); where appropriate, and other hand-crufting [hi powerpc!]
2002-02-27 01:20:51 +00:00
christos
6b030ee036
- define other DEV_ constants that the local port uses.
...
- delete cdev_decl(mm) since <sys/conf.h> does it.
2002-02-27 01:19:03 +00:00
eeh
1eb3484425
Fix PR# port-sparc64/13811: PCITAG_SETNODE() is defined using x' insted of
t'.
...
from URA Hiroshi
2002-02-26 22:39:14 +00:00
simonb
d9ab16ba2f
Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
...
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
2002-02-26 15:13:19 +00:00
scw
c4dbe1a160
Allow MD code to provide functions for reading/writing NVRAM/RTC
...
locations. If passed NULL, the old behaviour using bus_space_{read,write}_1()
is used. Otherwise, all access to the chip goes via the MD functions.
This is necessary for mvmeppc boards where the mk48txx NVRAM/RTC is not
directly addressable.
2002-02-23 17:18:54 +00:00
eeh
93ead6c5e0
Fix pr sparc64/15633: datafault at tlp_start causes panic
...
Also clean up some additional 32-bit kernel printf issues.
2002-02-21 02:42:27 +00:00
wiz
37e458fa45
strategy should have an 'r'. Inspired by similar change in OpenBSD.
2002-02-19 17:09:40 +00:00
simonb
2d8577fb83
Clean up some rampant code duplication wrt ieee number handling:
...
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
2002-02-19 13:08:12 +00:00
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