Commit Graph

43 Commits

Author SHA1 Message Date
soren 1e0aa36da8 ECOFF hook is in arch/mips. 2000-04-29 21:47:59 +00:00
thorpej f51470a514 Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED.  These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case).  Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
2000-04-29 03:31:45 +00:00
soren 9c2835a1c4 Make sure to read the clock before we leave the 'cold' state. 2000-04-28 19:58:04 +00:00
soren 78a464a74d Add microtime(). 2000-04-28 17:23:40 +00:00
soren 99e6adf31e Adapt to cpu_intr() change. 2000-04-28 15:55:51 +00:00
ad ab2d7be096 Add missing cdevsw and chrtoblktbl entries. 2000-04-28 13:28:42 +00:00
soren 88bf41a16e Use siop(4). 2000-04-27 10:52:43 +00:00
groo 3a77b18fd7 name change; rl -> rtk. Still commented out. 2000-04-22 21:03:27 +00:00
itojun 3be41bae18 add stf pseudo interface (commented out due to possible security risks) 2000-04-19 06:50:27 +00:00
soda c56a43535d remove following symbols which became unnecessary in recent cpu_intr() change:
mips_hardware_intr
	MIPS3_INTERNAL_TIMER_INTERRUPT
	mips3_intr_cycle_count
	mips3_timer_delta
2000-04-15 22:05:51 +00:00
nisimura cce3288e2f Backout the previous change; safepri is an evil idea after all. 2000-04-12 04:30:35 +00:00
nisimura a889c809fd MIPS1_PSL_LOWIPL -> PSL_LOWPSL. No functional change is expected. 2000-04-12 02:01:07 +00:00
soren ea5325726d Be a little more careful parsing boot parameters. 2000-04-09 00:13:54 +00:00
soren 579f97d5c5 The interrupt line registers for the devices wired directly to the CPU
are not meaningfull. Instead match them by {bus,device,pin}.
2000-04-09 00:13:27 +00:00
soren 43a7ae04c9 Disabling PCI Memory Read Multiple improves Tulip transmit performance 30%. 2000-04-09 00:11:51 +00:00
soda 1c5551f260 splsoftnet() should block softclock() too. 2000-04-03 11:44:19 +00:00
soren 076e3ffa1c Update. 2000-04-03 00:20:11 +00:00
soren 0551ccb4d4 Typo. 2000-03-31 15:00:49 +00:00
soren 278498c05f Some cleanups. 2000-03-31 14:51:49 +00:00
soren fab7d466f3 Add little to-do list. 2000-03-30 22:14:17 +00:00
soren 70abbd3c24 Crude kernel installer. 2000-03-30 21:46:16 +00:00
soren 80e6d43253 Add asm.h like other ports. 2000-03-30 21:33:30 +00:00
soren 471a03f8f6 Remove local hack. 2000-03-30 20:08:37 +00:00
soren 712cb103ff Customary GENERIC configuration.
Unfortunately, the Cobalt firmware seems to fail loading kernels larger
than about 2.5 megs before compression, so without a boot loader, this
is a rather amputated GENERIC.
2000-03-30 20:01:02 +00:00
nisimura 0076cd46eb - Nuke unnecessary cast.
- Change comments on cpu_startup() so as what it does (XXX found mostly
  common across ports).
- Retain UNIX heritage of /* Good {morning,afternoon,evening,night} */.
2000-03-27 01:51:17 +00:00
nisimura 795ee9db8e Remove unnecessary bzero() op for proc0's USPACE as pmap_steal_memory()
returns a nullified area.
2000-03-27 01:24:55 +00:00
nisimura 61609b54e2 Make sure proc0 PCB has spl0 condition in CP0 status register field.
cpu_fork() mistakenly created processes forked by proc0, including
kthreads, in splhigh condition, because [1] proc0's PCB was zero
cleared during initialization, and [2] value 0 in status register
field made processes to have splhigh condition when CPU tick was
assigned for them.  This mostly doesn't matter as forked processes
dive immediately into user mode through proc_trampoline code path,
however, kthreads never do that and remain in splhigh.

Reported by Ethan Solomita <ethan@geocast.com>.
2000-03-25 10:14:13 +00:00
soren 573160e03b Revert previous. 2000-03-24 23:06:03 +00:00
soren c535ede30b Move sysctl definitions from arch/mips to arch/foo. 2000-03-24 21:30:58 +00:00
soren b2386045f0 Protect against multiple inclusion. 2000-03-24 20:16:27 +00:00
soren 0a40850f62 Let's try NCR_IOMAPPED. 2000-03-24 13:08:30 +00:00
nisimura 608ce86497 - Have physical address for MIPS_PHYS_TO_KSEG1() macro.
- Make consistent function declarations.
- White spaces.
2000-03-23 08:09:54 +00:00
soren f3ca63ef9e Note that this is just for compatibility. 2000-03-22 21:15:59 +00:00
soren 5be5f12199 The firmware uses the clock in BCD mode. 2000-03-22 20:38:22 +00:00
soren 793382b291 Revert to the same scheme as the other MBR-using ports. 2000-03-22 20:38:05 +00:00
cgd 7c35662066 add commented out option PCI_CONFIG_DUMP whever there's a PCIVERBOSE. 2000-03-22 00:58:16 +00:00
soren 826e64bd17 Add math.h. 2000-03-21 02:48:17 +00:00
soren 7db0d53d01 Add math.h. 2000-03-21 02:30:42 +00:00
soren 28fba2d433 Blocking soft interrupts can be useful.. 2000-03-21 02:27:50 +00:00
soren 82f0c9bf4a Add bounds_check_with_label(). 2000-03-21 02:26:48 +00:00
soren b124a5ec8d Extend the evil interrupt kludge to the second ethernet. 2000-03-21 01:05:53 +00:00
soren d71e4cbde1 Use correct MACHINE_ARCH. 2000-03-20 12:26:11 +00:00
soren 4c547143d4 NetBSD/cobalt. Work-in-progress. 2000-03-19 23:07:43 +00:00