thorpej
92891185c3
Don't need a prototype for pmap_bootstrap_alloc(); the function
...
does not exist in the pmap API anymore.
2001-04-23 23:53:07 +00:00
pk
f33abf3809
Bump PIL_NET to 7; some sbus network boards use this interrupt level.
...
Nuke PIL_IMP.
2001-04-23 14:40:03 +00:00
thorpej
69fd928d7c
Remove pmap_kenter_pgs(). It was never really adopted by
...
anything, and the interface itself wasn't as flexible as
callers would have probably liked.
2001-04-23 01:02:06 +00:00
thorpej
55044638aa
Remove pmap_kenter_pgs(). It was never really adopted by
...
anything, and the interface itself wasn't as flexible as
callers would have probably liked.
2001-04-22 23:42:11 +00:00
thorpej
69abdbf60c
Undo a misguided previous change to the pmap_update() API.
2001-04-22 23:19:26 +00:00
thorpej
4738622712
Give pmap_update() an argument (a pmap_t) so that it knows which
...
pmap it should be updating.
2001-04-22 00:33:59 +00:00
thorpej
7f10ba88b1
#define away pmap_update() in <machine/pmap.h> so that no function
...
call overhead is incurred as we start sprinkling pmap_update() calls
throughout the source tree (no pmaps currently defer operations, but
we are adding the infrastructure to allow them to do so).
2001-04-21 23:51:14 +00:00
thorpej
15f731ee94
pmap_update() should not be equated with "flush entire TLB", it is
...
used to process deferred pmap operations. Since these pmaps don't
defer anything, pmap_update() is a noop.
2001-04-21 17:25:01 +00:00
pk
d373e2120f
Fix fdc_c_hwintr() and use it as a fall back if the `fast trap' handler
...
cannot be registered.
2001-04-19 14:53:36 +00:00
pk
4485b7f720
pmap_enter():
...
* turn ad-hoc `pmap resources allocated during sleep' into a panic condition
(this should all be prevented by higher level VM locking).
* arrange for ENOMEM to be returned if PMAP_CANFAIL is on, and malloc()
and/or pool_get() fail.
2001-04-17 20:14:46 +00:00
kleink
40c8d08347
Oops, intptrs are always long integers.
2001-04-17 13:46:02 +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
kleink
9133b51cd8
Replace the 'unsigned __COMPILER_INT64__' construct with a new name,
...
__COMPILER_UINT64__, to be supplied - if such a case is made, it shouldn't
be assumed that the unsigned type-specifier may be applied to it.
2001-04-12 22:01:18 +00:00
pk
cd24bc13e7
Account for the number of counter ticks that elapse while statintr()
...
processing takes place. This prevents stat clock skew by a factor
approximately proportional to stathz (not a serious problem if stathz==100;
but considerable already if stathz==1000).
2001-04-09 21:28:50 +00:00
pk
2c2e7aca80
Add macro to convert a counter register value to microseconds.
2001-04-09 21:17:33 +00:00
pk
a0daff5647
proc_trampoline(): mave the new process run at base interrupt priority level.
...
This is especially important for in-kernel processes started from here,
which would otherwise keep running at splclock().
2001-04-09 18:18:48 +00:00
pk
0929f3662e
* Missing PROM_OPENFIRM: case in getdevtype() and prom_getether().
...
* In getdevtype(), use prom_instance_to_package() to get to the device node.
From Valeriy E. Ushakov on port-sparc@netbsd.org .
2001-04-04 15:41:46 +00:00
petrov
1c9cc1b092
use NCR_F_DMASELECT instead of ncr53c9x_dmaselect
2001-03-29 03:30:19 +00:00
pk
a97039b0ae
pmap_release(), pmap_pinit() and the `pm_regstore' field are obsolete.
2001-03-26 23:18:51 +00:00
pk
4de5b658ad
Use a pool cache for pmap allocation. The cached pmap structures include
...
a ready-to-use level 1 page table (on sun4m) and MMU context.
A simple `fork()' test shows an improvement in spent system time of
around 4 percent (which is just a bit disappointing, IMO, but it's
an improvement nonetheless).
2001-03-26 23:12:03 +00:00
pk
104bada017
Missing KERNEL_PROC_LOCK() in the WIN_OF trap code.
2001-03-26 21:58:34 +00:00
lukem
20ba07f2fe
- add dev_noimpl(xxx,yyy) macro to replace "(dev_type_xxx((*))) yyy",
...
and use appropriately
- create more helper macros:
. cdev__xyz_init(c,n), such as cdev__ocri_init() for
/* open, close, read, ioctl */, etc.
. cdev__xRy_init(c,n), where nullop is used instead of enodev to dummy out
method `R' and the comments now read /* xxx (read) yyy */ instead
. cdev__xyz_t_init(c,n,t) - as per cdev__xyz_init, but sets d_type = t
as well
- use seltrue instead of dev_noimpl(poll,*), as (IIRC) cdevsw.d_poll should
always DTRT WRT returning a valid result. (a few devices previously
incorrectly returned ENODEV)
- use dev_noimpl(stop,enodev) instead of dev_noimpl(stop,nullop) if tty
== 0, because it doesn't matter if dev_type_stop isn't implemented in that
case, and it allows the use of the cdev__xyz_init macros. certain ports
(sparc,sparc64,x68k) used the nullop method for dev_type_stop in a few
drivers, whereas everything else uses enodev
- ensure that the comments are accurate WRT the behaviour of a given entry
2001-03-26 12:33:22 +00:00
mrg
74786e7894
remove overzealous locking changes.
2001-03-22 15:56:43 +00:00
mrg
0fa02bb6e6
sync with sparc64.
2001-03-22 06:21:43 +00:00
mrg
e563dea3f6
sync with sparc64 (just some debug messages.)
2001-03-22 06:21:15 +00:00
lukem
723cd818d8
move duplicate definitions for:
...
pc, lpt, joy, ocis, apm, satlink, i4bctl, i4brbch, i4btel, i4btrc, i4b
from the port-specific arch/*/*/conf.c files into sys/conf.h
2001-03-21 22:25:52 +00:00
mrg
47e6a41505
only lock the kernel around sy_call if !SYCALL_MPSAFE
2001-03-21 09:01:16 +00:00
pk
b54ea24924
Merge in4_cksum().
2001-03-21 00:38:47 +00:00
chs
e533061fce
in mem_access_fault*(), when invoking the pcb_onfault mechanism, pass the
...
return value of uvm_fault() to the onfault routine via %o0. users of
pcb_onfault now return this value to their callers rather than always
returning EFAULT. this allows i/o errors in VOP_GETPAGES() to be returned
back to read(), etc.
2001-03-18 17:11:22 +00:00
mrg
3bb2b205f9
show the cpu a process is running on in proc
2001-03-18 14:24:10 +00:00
mrg
45d39a2030
redo previous slightly differently.
2001-03-18 14:10:34 +00:00
mrg
e82b5bb630
"mach slock" for simple_locks
2001-03-18 14:06:10 +00:00
mrg
0fcd32a415
"mach cpu" is MP only.
2001-03-17 01:54:17 +00:00
mrg
e44f962032
steal a few mach commands from sparc64. add a #if 0'ed "mach cpu"
2001-03-16 10:28:53 +00:00
mrg
48fc32e16e
#ifdef DDB, add new function cpu_debug_dump(). define CPU_INFO_ITERATOR and
...
CPU_INFO_FOREACH.
2001-03-16 10:26:11 +00:00
chs
ac3bc537bd
eliminate the KERN_* error codes in favor of the traditional E* codes.
...
the mapping is:
KERN_SUCCESS 0
KERN_INVALID_ADDRESS EFAULT
KERN_PROTECTION_FAILURE EACCES
KERN_NO_SPACE ENOMEM
KERN_INVALID_ARGUMENT EINVAL
KERN_FAILURE various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE ENOMEM
KERN_NOT_RECEIVER <unused>
KERN_NO_ACCESS <unused>
KERN_PAGES_LOCKED <unused>
2001-03-15 06:10:32 +00:00
mrg
ef26546e15
lock the kernel around calling interrupt stubs.
2001-03-15 03:20:43 +00:00
mrg
122b3a0e67
sprinkle KERNEL_LOCK() and KERNEL_PROC_LOCK() where they're missing. add
...
SYSCALL_DEBUG support to trap.c.
2001-03-15 03:01:39 +00:00
tsutsui
43bd337868
Update for recent changes to the MI i82586 driver.
...
(added 'why' argument to the channel attention hook function)
2001-03-13 16:31:14 +00:00
pk
1b84e6fb33
pasto: sc_maddr => sc_mem
2001-03-09 10:19:54 +00:00
thorpej
5dedbd1c97
Duh, don't forget the proc argument.
2001-03-08 01:46:18 +00:00
thorpej
3423154d78
Use bus_dmamap_load(), not bus_dmamap_load_raw().
2001-03-08 01:38:57 +00:00
thorpej
2c4c690f14
Add the BUS_DMA_STREAMING flag.
2001-03-07 22:42:16 +00:00
pk
a917eabaec
* A couple of #if defined(SUN4M)' should be
#if defined(MULTIPROCESSOR)'
...
* Print notice if not all CPUs were attached
* Switch to SMP version of cache flush routines in just one place: in
cpu_attach() after all known CPUs have been configured.
2001-03-06 13:39:22 +00:00
pk
b91b8796d9
Implement MSGBUFSIZE option.
2001-03-05 16:46:09 +00:00