Commit Graph

606 Commits

Author SHA1 Message Date
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
matt
e21c02e25f Put RCSIDs in section ".ident" 2008-04-13 15:07:39 +00:00
matt
dfba816635 Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code.  Move to prototype definitions.  staticfy, constify, avoid casting.
Use device_* accessors.
2008-03-11 05:34:01 +00:00
xtraeme
f402cadf9a Remove CTL_MACHDEP_NAMES, it's not used anywhere.
Ok by martin@.
2008-02-27 18:26:15 +00:00
matt
aa6e59f5dc A number of performance changes:
Change internal register SSP to contain curlwp insread curcpu().  This
shrinks the GENERIC by 2KB.
Add rwlock stubs (rw_enter, rw_exit, rw_tryenter).
Simplify simple lock code for uniprocessors.
Do SPL raise/lower in cpu_handle_ipi instead of simple_locks.
2008-02-23 05:48:13 +00:00
matt
49ffaced1c Fix a bug in the pmap pcb tracking code. While here, rewrite it to simplier.
Use a field in the pcb itself (since it's basically free) and keep track of
what pmap "owns" a pcb (for consistency checking).  use M_ZERO as appropriate.
2008-02-22 08:46:48 +00:00
matt
80798140ed Switch NetBSD/vax to the CAS model of mutexes. Fix the locking primitives
in lock_stubs.S so they actually function correctly.
2008-02-22 03:16:01 +00:00
matt
a027746fa0 Make NetBSD/vax work again. Add support for __HAVE_FAST_SOFTINTS.
Add a few small optimizations.
2008-02-20 16:37:52 +00:00
matt
c905608a9f Add VAX_PHYS_TO_S0 (for asc_tcds)
Include <machine/cpu.h> for badaddr
2008-02-13 18:41:05 +00:00
matt
7a66d8d486 use memt instead of iot since everything is memory mapped. 2008-02-03 08:42:48 +00:00
matt
62d5d69912 De-__P 2008-02-03 08:39:48 +00:00
matt
c9c1064fa3 Switch this to use atomic_cas_ulong. 2008-02-03 08:33:00 +00:00
matt
67ba75fa05 Change IPL_SOFTBIO to 0x0b 2008-02-03 08:32:25 +00:00
matt
2395825b1c Add PMAP_VTOPHYS 2008-02-03 08:32:08 +00:00
matt
7fbe2ba862 Make sysmachine take a lwp instead of a proc. 2008-02-03 08:31:48 +00:00
matt
15753da255 Add cpu_intr_p (checks PSL_IS in PSL).
Change badaddr to take a volatile pointer
2008-02-03 08:31:09 +00:00
matt
0ae740580b change all u_int{8,16,32}_t to uint{8,16,32}_t 2008-02-03 08:30:19 +00:00
skrll
ebb5deb738 Define PT_MACHDEP_STRINGS 2008-01-25 11:59:20 +00:00
joerg
3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
joerg
7e82e3084b Timecounter support for VAX. Basic testing in simh done on a backported
version to netbsd-4.
2008-01-07 16:40:16 +00:00
ad
fee5b86dc3 Don't need sys/lock.h 2008-01-05 00:19:46 +00:00
joerg
84487ad85b Needs sys/simplelock.h. 2008-01-04 21:56:36 +00:00
tsutsui
b3b089f419 Use (char *) on pointer arithmetic. 2007-12-22 08:29:40 +00:00
ad
4b293a84e1 Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
2007-12-03 15:33:00 +00:00
plunky
1effb490f2 remove alias for _insque and _remque since they are no longer
used. leave the vax_insque function for no reason except that
it maps to an actual instruction.
2007-11-22 23:02:05 +00:00
yamt
aebd6aa5c9 add comments 2007-11-21 11:15:50 +00:00
yamt
38d5e34116 make kmutex_t and krwlock_t smaller by killing lock id.
ok'ed by Andrew Doran.
2007-11-21 10:19:06 +00:00
yamt
c64de7a608 sync the prototype of cpu_switchto with sys/cpu.h. 2007-11-20 13:37:37 +00:00
ad
bd6663fc4d Don't set l_usrpri / spc_curpriority here. mi_userret() does it. 2007-11-05 20:37:48 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
ad
6299e033fb ci_need_resched -> ci_want_resched 2007-10-01 21:23:02 +00:00
skrll
9fdaf800d9 Merge nick-csl-alignment. 2007-09-10 11:34:05 +00:00
drochner
dce09ea075 clean up some definitions around rune_t which are not needed anymore 2007-09-03 20:31:56 +00:00
drochner
0e0fe2c353 Fix definitions of UCHAR_MAX/USHRT_MAX and related
types. C99 requires that these definitions promote to (signed/unsigned)
integer the same way as the types the definition is for. And since
unsigned char/short fit into an "int" on all our archs and thus promote
to signed int, the definitions must not be unsigned.
Fixes PR lib/31306 by Neil Booth.
2007-08-31 16:24:21 +00:00
ad
63811f5275 Generic soft interrupts are mandatory. 2007-07-14 21:48:17 +00:00
skrll
fb901b95c7 __HAVE_MD_RUNQUEUE is no longer relevant. 2007-06-01 07:18:31 +00:00
yamt
f03010953f merge yamt-idlelwp branch. asked by core@. some ports still needs work.
from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.
2007-05-17 14:51:11 +00:00
matt
f6c632db63 Add TURBOChannel machine-dependent include for VAX. 2007-04-15 23:27:02 +00:00
matt
cf078da5bb Use the ffs builtin in gcc4.1 2007-04-08 03:11:31 +00:00
matt
d0ef60fca0 Fix boolean inversion and missing definition. 2007-04-06 17:48:06 +00:00
matt
ea4611db47 s/volatile/__volatile 2007-03-31 06:02:08 +00:00
matt
b3cd0abcf6 Shrink VAX kmutex from 12 bytes to 8. Fix various LOCKDEBUG/DIAGNOSTIC
problems.
2007-03-12 02:22:43 +00:00
thorpej
9bb23baed6 Fix the INSV instruction in MUTEX_ACQUIRE(). From Hans Rosenfeld. 2007-03-09 21:35:33 +00:00
ragge
3ad77da985 cpu_simple_lock() calls are emitted in the UP case if DEBUG || DIAGNOSTIC.
This should probably be fixed somewhere else, but currently just include
it here. Fixes PR#35866 from Henry R. Bent.
2007-03-04 07:28:12 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
christos
bac2433715 - use __inline like the other ports do.
- use __ in parameter names
- provide separate prototype lines.
2007-02-26 01:33:41 +00:00
christos
c581ede63d Provide constants for the widths of the bitfields and use them. 2007-02-26 01:32:29 +00:00
mrg
367f87f080 fix a typo - s/_inline/inline/ 2007-02-24 02:25:02 +00:00
thorpej
ae01c745cb TRUE -> true, FALSE -> false 2007-02-22 06:47:16 +00:00
thorpej
712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00