Commit Graph

2059 Commits

Author SHA1 Message Date
ad
4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
ad
2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
dsl
35e44a2658 Fix the remaining sys_sysarch() stub function. 2007-12-22 08:59:02 +00:00
tsutsui
b3b089f419 Use (char *) on pointer arithmetic. 2007-12-22 08:29:40 +00:00
tsutsui
f35eb8772f Put a workaround for gcc ICE on ddb/db_command.c. 2007-12-22 08:17:57 +00:00
dsl
7e2790cf6f Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
2007-12-20 23:02:38 +00:00
dyoung
adde197943 Use IFADDR_EMPTY(). 2007-12-05 22:51:01 +00:00
dyoung
3f6c5b6545 Don't open-code queue(3) macros (x = ifnet.tqh_first; y =
x.if_list.tqe_next).  Instead, use the macros themselves.
2007-12-05 01:02:15 +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
9f6672e12b fix changes which i forgot to commit with sys/arch/vax/include/mutex.h rev.1.9. 2007-11-22 13:13:15 +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
dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
ad
bd6663fc4d Don't set l_usrpri / spc_curpriority here. mi_userret() does it. 2007-11-05 20:37:48 +00:00
xtraeme
4ba09b41c3 Remove System V semaphores and share memory options to set the limits:
SEMMNI, SEMMNS, SEMUME and SHMMAXPGS.

They can be tweaked via sysctl now. Ports that were setting values on
them weren't touched, I only removed the ones that were commented out.
2007-11-04 14:34:19 +00:00
yamt
23005df1e0 defparam PAGER_MAP_SIZE. 2007-10-25 13:03:03 +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
9f56dfa520 Merge brelse() changes from the vmlocking branch. 2007-10-08 18:02:53 +00:00
ad
2af68666da Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.
2007-10-08 16:41:05 +00:00
ad
6299e033fb ci_need_resched -> ci_want_resched 2007-10-01 21:23:02 +00:00
martin
d9a407bba2 Add a new option DDB_VERBOSE_HELP that adds online help to ddb.
From Adam Hamsik.
Minor modifications by me, all bugs are probably mine.
2007-09-22 18:40:20 +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
63c4506184 Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.
2007-08-15 12:07:23 +00:00
ad
66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +00:00
ad
63811f5275 Generic soft interrupts are mandatory. 2007-07-14 21:48:17 +00:00
ad
88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
pooka
0bc323f5cd Initialize the link context in a signal frame to the receiving lwp's
link context instead of NULL.  Otherwise, if we got a signal while the
lwp had a link context set, the link context would be set to NULL upon
return from signal delivery.

christos@tech-kern: "I think you are right."
2007-07-08 10:19:21 +00:00
mhitch
cd777bd880 Get rid of pcb usages, not needed for idlelwp. 2007-06-22 20:24:09 +00:00
martin
c2534a819b Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
2007-06-04 08:55:18 +00:00
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