Commit Graph

72 Commits

Author SHA1 Message Date
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
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
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
soda 1c5551f260 splsoftnet() should block softclock() too. 2000-04-03 11:44:19 +00:00
soda 18dbe75d6e cancel previous change, and add a comment about it.
$INCS variable is introduced by cgd to export kernel headers which
are needed from userland. In other words, $INC should only have
headers for kernel <-> userland programming interface.
Headers for kernel internal implementation should not be exported
to userland.
2000-03-31 11:44:05 +00:00
soren e204cb3eb9 machine/cpu.h includes mips/cpuregs.h. 2000-03-30 21:37:51 +00:00
soren 726573bf96 Match contents. 2000-03-30 21:33:19 +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
tron e86957458a Install "machineendian_machdep.h". 2000-03-17 22:36:31 +00:00
mycroft 9e21b6555a In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
mycroft 02905321b2 Foolish consistency. Mainly, always use underscores and sys/endian.h. 2000-03-16 15:09:34 +00:00
soda d4b9359964 do not install bus.h, kbdreg.h and pio.h..
since currently these are not useful/needed from userland.
2000-03-03 12:38:25 +00:00
soda 71f6ef9ee6 merge changes between OpenBSD-2.1 and OpenBSD-2.6 2000-02-22 11:25:55 +00:00
soda 87009692f7 OpenBSD-2.6/arc 2000-02-22 11:05:02 +00:00
thorpej dded044fc2 Update for the NKMEMPAGES changes. 2000-02-11 19:25:12 +00:00
cgd 7d16ac338c add __BROKEN_CONFIG_UNIT_USAGE #define, becuase these ports do very
wrong things with device configuration data "cf_unit" information.
2000-02-05 00:13:22 +00:00
soda e44d6b7781 ELF*_MACHDEP_ENDIANNESS was undefined. 2000-01-31 15:51:35 +00:00
soda 7978d0205b - _MACHINE_ARCH was undefined, MACHINE_ARCH was wrong.
- make "make includes" work
2000-01-27 07:50:02 +00:00
soda 39cd3507d2 make "make includes" work 2000-01-27 07:49:13 +00:00
kleink 2e7016f6ac Add missing wrapper header. 2000-01-26 16:42:02 +00:00
soda 564df9b630 merge to NetBSD-current (DeskStation and Algor support is currently broken) 2000-01-23 21:01:48 +00:00
soda 479e34aa41 merge to NetBSD-current (DeskStation and Algor support is currently broken) 2000-01-23 20:45:01 +00:00
soda 5009ff6d63 OpenBSD-2.1/arc 2000-01-23 20:24:23 +00:00
soda 8102fac9d4 Moved from /cvsroot/syssrc/sys/arch/pica/include/ieee.h,v 2000-01-23 20:08:48 +00:00
soda cd29fe4bb1 Moved from /cvsroot/syssrc/sys/arch/pica/include/elf_machdep.h,v 2000-01-23 20:08:47 +00:00
soda df1404532c Moved from /cvsroot/syssrc/sys/arch/pica/include/ecoff_machdep.h,v 2000-01-23 20:08:47 +00:00
soda 6fa8042cc3 Moved from /cvsroot/syssrc/sys/arch/pica/include/bswap.h,v 2000-01-23 20:08:46 +00:00
soda 71226b5898 Moved from /cvsroot/syssrc/sys/arch/pica/include/bsd-aout.h,v 2000-01-23 20:08:45 +00:00
soda 6431b0a81d Moved from /cvsroot/syssrc/sys/arch/pica/include/aout_machdep.h,v 2000-01-23 20:08:45 +00:00
soda 109d2f9181 Moved from /cvsroot/syssrc/sys/arch/pica/include/Makefile,v 2000-01-23 20:08:44 +00:00
soda 84306c0d5d Moved from /cvsroot/syssrc/sys/arch/pica/include/vmparam.h,v 2000-01-23 20:08:41 +00:00
soda 4cbf65174d Moved from /cvsroot/syssrc/sys/arch/pica/include/varargs.h,v 2000-01-23 20:08:40 +00:00
soda 1577ff50ea Moved from /cvsroot/syssrc/sys/arch/pica/include/types.h,v 2000-01-23 20:08:39 +00:00
soda 33e9dba342 Moved from /cvsroot/syssrc/sys/arch/pica/include/trap.h,v 2000-01-23 20:08:39 +00:00
soda f0931ebe3a Moved from /cvsroot/syssrc/sys/arch/pica/include/stdarg.h,v 2000-01-23 20:08:38 +00:00
soda 531913086d Moved from /cvsroot/syssrc/sys/arch/pica/include/signal.h,v 2000-01-23 20:08:37 +00:00
soda 471def64b2 Moved from /cvsroot/syssrc/sys/arch/pica/include/setjmp.h,v 2000-01-23 20:08:36 +00:00
soda 3f59502e1f Moved from /cvsroot/syssrc/sys/arch/pica/include/reloc.h,v 2000-01-23 20:08:36 +00:00
soda 8235b56fbb Moved from /cvsroot/syssrc/sys/arch/pica/include/regnum.h,v 2000-01-23 20:08:35 +00:00
soda 991dcd73f5 Moved from /cvsroot/syssrc/sys/arch/pica/include/regdef.h,v 2000-01-23 20:08:35 +00:00
soda f018928d56 Moved from /cvsroot/syssrc/sys/arch/pica/include/reg.h,v 2000-01-23 20:08:34 +00:00
soda e0d9fee67b Moved from /cvsroot/syssrc/sys/arch/pica/include/ptrace.h,v 2000-01-23 20:08:33 +00:00
soda 877f0260c7 Moved from /cvsroot/syssrc/sys/arch/pica/include/pte.h,v 2000-01-23 20:08:33 +00:00
soda bd754d76b2 Moved from /cvsroot/syssrc/sys/arch/pica/include/psl.h,v 2000-01-23 20:08:32 +00:00
soda f2ce555ca9 Moved from /cvsroot/syssrc/sys/arch/pica/include/profile.h,v 2000-01-23 20:08:31 +00:00
soda 415a7de1fe Moved from /cvsroot/syssrc/sys/arch/pica/include/proc.h,v 2000-01-23 20:08:30 +00:00