thorpej
af66038f73
Merge the thorpej-mips-cache branch onto the trunk. This is an
...
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:15:10 +00:00
simonb
a41b7a380e
Clean up and standardise across MIPS ports.
2001-09-09 04:20:25 +00:00
simonb
099f117735
Standardise the format of MIPS' <machine/db_machdep.h>.
2001-09-04 07:43:29 +00:00
simonb
a04de48d4b
Remove comment duplicated in <mips/bsd-aout.h>.
2001-09-04 07:36:11 +00:00
simonb
7970ec8018
More RCS ID cleanup.
2001-09-04 07:22:03 +00:00
simonb
156b308a83
Remove some more useless RCS ids.
2001-09-04 07:12:28 +00:00
thorpej
a08af3853a
Implement bus_space_mmap().
2001-09-04 06:57:26 +00:00
simonb
c91e08563f
Clean up.
2001-09-04 06:26:18 +00:00
simonb
3839989a12
Remove unneeded RCS header.
2001-09-04 06:24:54 +00:00
simonb
214f5366ea
Centralise struct cpu_info declaration and related info to <mips/cpu.h>.
2001-09-04 06:19:21 +00:00
simonb
a6b8c86af0
Remove an unneeded comment; ``sync'' with other "just include <mips/foo.h>"
...
files.
2001-08-31 03:53:22 +00:00
simonb
4ac4da1c52
G/C the unused kernel-only CLK_TCK #define.
...
XXX: does include/time.h still need <machine/limits.h>?
2001-08-31 03:46:03 +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
soda
fb93db6893
remove __BROKEN_CONFIG_UNIT_USAGE, finally (sorry to be late, cgd).
2001-06-13 15:38:15 +00:00
soda
bc0d30a90c
introduce "struct platform", and remove "cputype" variable.
...
this change also includes a patch to obtain secondary cache size
from ARC firmware by Bob Meader, which was posted on port-arc on 18 Aug 2000.
this should make NEC Express RISCserver work.
this change obtains ID of display controller from ARC firmware, too.
2001-06-13 15:08:05 +00:00
soda
b7abba7794
split pccons driver into "pccons" and "opms",
...
also split into bus-dependent frontend and bus-independent backend.
2001-06-13 15:05:43 +00:00
soda
33669543d9
remove algor related codes, because there is independent (and working!)
...
algor port now.
2001-06-13 14:58:38 +00:00
soda
7a314c516c
enable device_register(9) on arc port to parse boot device name
...
passed by ARC firmware correctly.
2001-06-13 14:36:33 +00:00
mrg
67afbd6270
use _KERNEL_OPT
2001-05-30 11:57:16 +00:00
tsutsui
9247a0bbcc
- Declare pccnattach() in <machine/pccons.h>
...
- Make cpu_reboot() reset machines properly without pccons
2001-05-11 21:15:11 +00:00
thorpej
4717bdf66e
Remove some redundant definitions (they're already in <mips/pmap.h>).
2001-04-25 17:54:07 +00:00
kleink
f06533a1ee
Add definitions of C99 integer format conversion macros.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 17:13:04 +00:00
kleink
739cb75837
Add definitions of C99 specified-width integer type limits.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 15:29:02 +00:00
kleink
cdcf9f46c5
Add definitions of C99 integer constant macros.
...
Tidy Makefiles up a little.
2001-04-14 22:46:19 +00:00
kleink
a7c20e5788
Add definitions of C99 integer constant macros.
2001-04-14 22:38:33 +00:00
kleink
7affdab52e
Add definitions of C99 minimum-width and greatest-width integer types.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-14 12:19:49 +00:00
thorpej
bf2dcec4f5
Remove the use of splimp() from the NetBSD kernel. splnet()
...
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
thorpej
316dcc474b
splvec.splimp -> splvec.splvm
2001-04-12 19:21:20 +00:00
thorpej
2c4c690f14
Add the BUS_DMA_STREAMING flag.
2001-03-07 22:42:16 +00:00
tsutsui
f47d2bae91
Fix include path.
...
(mips/include/mips_opcode.h -> mips/mips_opcode.h)
2001-02-17 04:31:25 +00:00
thorpej
d85a75f583
Make sure everybody has an splvm() and equate it with splimp() (splimp()
...
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
2001-01-14 02:00:37 +00:00
ur
7701dc57be
Adapt to pci_intr_map change.
2001-01-13 10:46:18 +00:00
thorpej
58e7a6954b
Add spllock(). See spl(9) for details.
2000-08-22 19:46:26 +00:00
thorpej
23a7f255d4
Make sure we provide splsched() as described in spl(9).
2000-08-21 02:06:31 +00:00
itojun
d738f90fd7
raise MSIZE from 128 to 256.
...
- for sizeof(void *) == 8 arch, this is mandatory. MHLEN is too small
already (less than 80) and there are chances for unwanted packet loss due
to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
(even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
extension header)
portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.
2000-06-30 17:55:11 +00:00
kleink
e695f72a2e
Add <machine/int_types.h>, which provides namespace-pure definitions
...
of exact-width integer types.
2000-06-26 15:42:16 +00:00
simonb
889c658b5b
Change the kernel mmap interface so that the offset to map is an
...
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".
Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
2000-06-26 04:55:19 +00:00
soda
7b3141e1fb
for DeskStation RPC44
2000-06-20 08:26:52 +00:00
soda
5175a6121b
vga/pckbc attachment for jazz internal bus of Magnum derived machines
...
(including Pica, NEC RISCstation/RISCserver).
2000-06-17 07:23:05 +00:00
soda
4412ca8455
<machine/cpuregs.h> was removed on March 30,
...
from Shuichiro URATA <ur@a-r.org>.
2000-06-12 17:01:05 +00:00
soda
e5b560a385
- NEC RISCstation 2250 (RD-94) PCI bus support,
...
contributed by Shuichiro URATA <ur@a-r.org>.
- Experimental coding for NEC RISCserver 2200 and RISCstation 2200.
(doesn't really work)
2000-06-09 05:41:56 +00:00
soda
1258a24612
NEC RISCstation 2250 (RD-94) PCI bus support,
...
contributed by Shuichiro URATA <ur@a-r.org>
2000-06-09 05:33:02 +00:00
soda
861ce3dca7
bus_space/bus_dma implementation for arc port, based on i386 port, pmax port,
...
hpcmips port, and the version contributed by Shuichiro URATA <ur@a-r.org>.
2000-06-09 05:14:42 +00:00
soda
b1438dd751
make paddr_t 64bit on arc port by introducing _MIPS_PADDR_T_64BIT.
2000-06-09 04:36:43 +00:00
soren
d8e5d1fa7d
Add rnd(4) glue for the MIPS3 cycle counter.
2000-06-06 02:24:00 +00:00
cgd
cffb580806
Implement the more flexiable `evcnt' interface as discussed (briefly) on
...
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +00:00
cgd
47449a63d2
kill __P in these files. (I had to look at them anyway with an eye for
...
adding some protos... and adding them with __P seems wrong, but mixing
__P and not __P in the same file seems wrong too, so...)
2000-06-01 00:04:50 +00:00
thorpej
a7d0570e67
First sweep at scheduler state cleanup. Collect MI scheduler
...
state into global and per-CPU scheduler state:
- Global state: sched_qs (run queues), sched_whichqs (bitmap
of non-empty run queues), sched_slpque (sleep queues).
NOTE: These may collectively move into a struct schedstate
at some point in the future.
- Per-CPU state, struct schedstate_percpu: spc_runtime
(time process on this CPU started running), spc_flags
(replaces struct proc's p_schedflags), and
spc_curpriority (usrpri of processes on this CPU).
- Every platform must now supply a struct cpu_info and
a curcpu() macro. Simplify existing cpu_info declarations
where appropriate.
- All references to per-CPU scheduler state now made through
curcpu(). NOTE: this will likely be adjusted in the future
after further changes to struct proc are made.
Tested on i386 and Alpha. Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
2000-05-26 21:19:19 +00:00
soda
e06738f06f
back out previous changes as stopgap.
...
arc port still relies on MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV.
(cpu_intr() of arc port should be rewritten completely, but not yet.)
2000-05-09 07:27:04 +00:00
soren
95f3c9498d
MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV are deprecated.
2000-05-05 03:18:25 +00:00