Commit Graph

291 Commits

Author SHA1 Message Date
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
he f085246ad5 Move from want_resched to ci->ci_want_resched. 2007-10-25 09:43:24 +00:00
ad bccf777b72 Make ras_lookup() lockless. 2007-10-24 14:50:38 +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
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
dyoung 6f7649313f Constify. 2007-08-26 22:28:52 +00:00
macallan a1457f5905 change pmap_phys_address()s parameter to paddr_t since that's what it gets
fed from mmap*() anyway
approved by gimpy
2007-07-16 23:48:03 +00:00
ad 63811f5275 Generic soft interrupts are mandatory. 2007-07-14 21:48:17 +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 4868ebda4e want_resched is no longer required here. 2007-06-01 07:21:51 +00:00
skrll afcc3d424c Missed this in previous commit.
Attempt to adacpt acorn26 to idlelwp. This is untested.

OK'd by Ben Harris
2007-06-01 07:21:26 +00:00
skrll a6c4dd7bcd Attempt to adacpt acorn26 to idlelwp. This is untested.
OK'd by Ben Harris
2007-06-01 07:04:53 +00:00
ad 59d979c5f1 Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
2007-03-12 18:18:22 +00:00
thorpej d1d10b58ab Make ipl_t and ipl_cookie_t 8-bit values. kmutex is now down to 12 bytes
(from 20) on ARM.

Approved by Matt Thomas.
2007-03-09 06:45:19 +00:00
he 6f4945e435 Do some casts via paddr_t and void* to compute address of msgbuf and
pass it to initmsgbuf().
2007-03-05 17:52:26 +00:00
he 8485493114 Cast to char* before doing pointer arithmetic. 2007-03-05 16:41:03 +00:00
he f216f1649f Cast to char* before pointer arithmetic. 2007-03-05 16:39:21 +00:00
he 5d3a459b83 Use a local variable of the appropriate type, assign from argument,
and get rid of some casts as a bonus, following caddr_t removal.
2007-03-05 15:55:19 +00:00
he 2d94cf729d Add a couple of casts to char* before doing pointer arithmetic. 2007-03-05 15:42:23 +00:00
he ac662e9e5f Remove an unneeded addition of 0 to what is now a void*. 2007-03-05 15:40:28 +00:00
bjh21 5dbe04b416 Finally make cpufuncs work properly on acorn26, since something seems to be
using it.  This entailed adding support for ARM2 and ARM2as, and allowing
for getting CPU IDs other than from CP15, since ARM2(as) doesn't have CP15.
2007-03-04 14:47:18 +00:00
bjh21 6c6b1ee9b1 Strip ARM mapping symbols ($a etc) the same was as Makefile.arm does, so
as to make DDB's stack traces more useful.  It might be better if acorn26
just used Makefile.arm, but one thing at a time.
2007-03-04 13:12:22 +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
bjh21 ed1dd83c02 Honour ATOMIC_SET_BIT_NONINLINE_REQUIRED, now that it can be unset on
acorn26.
2007-02-28 23:47:09 +00:00
he c4e5150555 Adapt to bool conversion of the DDB functions. 2007-02-23 09:49:48 +00:00
thorpej b25aff5288 TRUE -> true, FALSE -> false 2007-02-22 04:47:27 +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
he ec0a47ad92 Remove declaration of now-unused local variable. 2007-02-19 23:48:40 +00:00
ad 272e8a5484 Always call sched_lock_idle()/sched_unlock_idle(). 2007-02-19 23:46:43 +00:00
ad fadd0e59e3 Update for locking changes. 2007-02-19 23:44:26 +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
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 b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
hubertf 142c2a33ba Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
2007-01-24 13:08:11 +00:00
yamt 8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
wiz 6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
plunky 57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
jmmv 7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
bjh21 7b50d90366 When processing RASes, only pay attention to, and change, the PC parts of R15,
leaving the PSR bits alone.  Necessary to make regress/sys/kern/ras/ras1 pass.
2006-10-15 12:45:32 +00:00
bjh21 a9e02c7638 Correctly calculate fault addresses for instructions like:
ldr	rX, [rY, rZ, ror #16]
and even:
	ldr	rX, [rY, rZ, rrx]
Why anyone would want such an instruction is beyond me, but it's nice not to
panic if they do.  Also this makes regress/sys/arch/arm/abort-fixup pass.
2006-10-14 20:39:21 +00:00
bjh21 2121e75b3f When forking a new LWP, if a new user stack pointer is provided, use it.
Necessary to make regress/lib/libc/clone pass.
2006-10-14 17:51:37 +00:00
bjh21 ecd6759513 Expose __PROG26 to assembly language so we can use it to decide whether
R14 is vulnerable.
2006-10-08 12:22:35 +00:00
bjh21 c3d7e34641 hardsplx() is declared in <machine/intr.h>, so there's no need to declare it
here.
2006-10-07 21:12:00 +00:00
bjh21 0e30542fee Make setsoftnet() into a macro, which seems to be the usual approach on systems
with generic soft interrupts.
2006-10-07 20:58:00 +00:00
bjh21 0ddc4aa582 Make splsched() and splstatclock() into aliases for splhigh(), since
practically no hardware interrupts can occur above splstatclock().
This also makes splsched() faster, which is good since it's called an awful
lot.
2006-10-07 20:51:47 +00:00
bjh21 6f89e70357 When we catch a branch through zero, push a stack frame so that it's possible
to get a stack backtrace through the error.
2006-10-07 13:36:31 +00:00
chs 33c1fd1917 add support for O_DIRECT (I/O directly to application memory,
bypassing any kernel caching for file data).
2006-10-05 14:48:32 +00:00
bjh21 1bef3c4ceb Use top-down VM on acorn26 and increase the maximum data size to take
advantage of this.  I can run GCC on my A540 now.
2006-10-05 00:25:50 +00:00
bjh21 578a81db96 Timecounter support for acorn26, using IOC timer 0 and a bit of trickery. 2006-10-04 23:40:00 +00:00