skrll
fb901b95c7
__HAVE_MD_RUNQUEUE is no longer relevant.
2007-06-01 07:18:31 +00:00
mhitch
7a5f5a8ddf
Fix commant: proc_trampoline() -> cpu_lwp_bootstrap().
2007-05-20 17:04:22 +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
bb1c05a804
Make this compile again if COMPAT_ULTRIX is enabled.
2007-04-25 12:53:46 +00:00
mhitch
a7afe56d70
Fix polyd trapping when running pic and grn during groff tool builds on
...
vax. From OpenBSD:
Addressing mode work by Jim Uhl:
- fix PC relative byte displacement in getaddr_byte
- add support for word displacement to getaddr_byte
This allows certain libm inverse trig functions to work on systems
that lack a native polyd instruction.
2007-04-17 22:47:50 +00:00
matt
f6c632db63
Add TURBOChannel machine-dependent include for VAX.
2007-04-15 23:27:02 +00:00
matt
4e8374bdef
Workaround a gcc 4.1 issue. don't use s.m = s2.m = s3.m = ...
...
assign them individually.
2007-04-11 02:22:36 +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
802469c2c9
Change tstl/beql/clrl to bbcc in softintr_dispatch
2007-04-06 17:45:41 +00:00
matt
a484b6a3f3
Add -fno-pic to CFLAGS and AFLAGS
2007-03-31 06:03:13 +00:00
matt
ea4611db47
s/volatile/__volatile
2007-03-31 06:02:08 +00:00
matt
2538fd4e27
Don't use an uninitialized lastaddr (initialize it to 0).
2007-03-31 06:01:33 +00:00
matt
db9db0872e
Don't exceed array bounds (found by gcc 4.3).
...
XXX not sure if the fix is correct.
2007-03-31 06:00:38 +00:00
matt
2a142509e8
Build kernels with -fno-pic.
2007-03-31 05:59:45 +00:00
matt
125090f30f
Remove errant debug line.
2007-03-17 00:11:03 +00:00
ragge
ef1bc24053
Link the boot loader for address 4M-64k, as requested by Hans Rosenfeld.
...
It's not likely that a vax has less than 4MB of memory today, if someone
has a small-memory-machine he have to recompile boot himself.
2007-03-13 17:54:07 +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
matt
0b7ea235a3
Fix softintrs (boolean test problem). Spotted by mhitch.
2007-03-12 02:21:22 +00:00
thorpej
9bb23baed6
Fix the INSV instruction in MUTEX_ACQUIRE(). From Hans Rosenfeld.
2007-03-09 21:35:33 +00:00
ad
c147748d84
- Make the proclist_lock a mutex. The write:read ratio is unfavourable,
...
and mutexes are cheaper use than RW locks.
- LOCK_ASSERT -> KASSERT in some places.
- Hold proclist_lock/kernel_lock longer in a couple of places.
2007-03-09 14:11:22 +00:00
christos
47c1e3335d
another caddr_t botch
2007-03-05 20:53:34 +00:00
christos
06a8516672
Fix caddr_t fallout.
2007-03-04 19:21:55 +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
dogcow
3f940223f3
miscellaneous fallout from the great boolean rototill.
2007-02-22 20:09:42 +00:00
thorpej
ae01c745cb
TRUE -> true, FALSE -> false
2007-02-22 06:47:16 +00:00
thorpej
dd962f8680
Pick up some additional files that were missed before due to conflicts
...
with newlock2 merge:
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 23:48:10 +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
mrg
4410329b87
add a pair of new bus_dma(9) functions:
...
int _bus_dmatag_subregion(bus_dma_tag_t tag,
bus_addr_t min_addr,
bus_addr_t max_addr,
bus_dma_tag_t *newtag,
int flags)
void _bus_dmatag_destroy(bus_dma_tag_t tag)
that allow a (normally broken/limited) device to restrict the bus address
range it can talk to. this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.
all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.
XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
chs
1806872d10
in pmap_extract(), check for the PTE being valid in addition to
...
the PTP being valid when deciding if a user mapping exists.
2007-02-19 18:43:40 +00:00
matt
12f3fecf74
Return rv, not 1, in MUTEX_ACQUIRE (spotted by mhitch)
2007-02-19 03:06:46 +00:00
matt
2256888afe
L_USERRET -> LW_USERRET
2007-02-19 03:06:16 +00:00
ad
4baed28eee
MUTEX_NO_SPIN_ACTIVE_P() needs to be a macro, otherwise we end up in
...
circular dependency hell.
2007-02-19 00:31:21 +00:00
dsl
1547309b01
Pretend the ddb code has proclist_lock held to stop any deadlock.
2007-02-17 22:47:42 +00:00
pavel
934634a18c
Change the process/lwp flags seen by userland via sysctl back to the
...
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.
Restores source compatibility with pre-newlock2 tools like ps or top.
Reviewed by Andrew Doran.
2007-02-17 22:31:36 +00:00
matt
f7d7a7a06a
Add an implementation for krwlock_t. Initialize ci_mtx_count to 1 (biased).
...
Fix a few buglets in the kmutex_t implementation.
2007-02-17 05:34:07 +00:00
ad
3363855a4a
Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
...
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad
26c2c3986f
MUTEX_SET_WAITERS(): return zero if the mutex has become unheld.
2007-02-16 02:48:47 +00:00
ad
86e995e9d5
More MD changes to get vax compiling.
2007-02-16 02:17:42 +00:00
matt
53af1aa78b
Partially adapt the VAX port to the newlock2 changes. These are untested
...
but they do at least compile.
2007-02-16 01:33:49 +00:00
ad
087fdb9080
Count the number of CPUs at boot and stash in 'ncpu'. Eventually should
...
have each CPU register at attach, so we can figure out the topology for
the scheduler.
2007-02-15 20:32:47 +00:00
ad
b07ec3fc38
Merge newlock2 to head.
2007-02-09 21:55:00 +00:00
ragge
0dc4689916
GCC constraints error for inline assembler, causing in_cksum to calculate
...
the checksum wrong in the non-optimized case. Fix provided in PR#14614
by Rhialto, so this solves this PR.
2006-12-31 10:52:52 +00:00
yamt
3f0f3de613
update comments on NFS_V2_ONLY after nqnfs removal. no functional changes.
...
from Arnaud Lacombe.
2006-12-29 21:49:03 +00:00
elad
504c71d9fe
Make machdep scope architecture-agnostic by removing all arch-specific
...
requests and centralizing them all. The result is that some of these
are not used on some architectures, but the documentation was updated
to reflect that.
2006-12-26 10:43:43 +00:00
elad
3d11477c94
Add requests indicating access to unmanaged memory for arm, pc532, powerpc,
...
sh3, sh5, and vax, and use them instead of KAUTH_GENERIC_ISSUSER.
Update documentation and example secmodel code.
2006-12-22 11:13:21 +00:00