Commit Graph

44 Commits

Author SHA1 Message Date
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
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
kiyohara f1bbc2447a The initarm() should initialize GPIO. We must not initialize GPIO in
foo_attach() of the each drivers.  And, it is necessary to confirm whether
to be initialized in foo_match().  To avoid a dangerous configuring on the
evaluation boards.
2007-08-21 11:39:11 +00:00
kiyohara 510dbbae54 Add slhci at pcmcia.
And reorder.
2007-08-21 02:48:14 +00:00
he 9a436817c2 Use $INSTALL_FILE, not just $INSTALL so that unpriviliged builds work. 2007-08-17 06:47:03 +00:00
nonaka fad0ea915b build and install zbsdmod.o. 2007-08-09 16:08:58 +00:00
nonaka 1de7f19819 Added support to detect AC adapter and charge battery. 2007-07-29 14:31:23 +00:00
nonaka 9efd71ca75 sync with OpenBSD. 2007-07-29 14:29:38 +00:00
nonaka c3fdd97b8c Add missing callout_init(). 2007-07-21 01:47:58 +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
nonaka e02b41111a cpu_reboot():
- fix data write-back to hard disk is failed when reboot/halt.
2007-06-28 16:07:12 +00:00
nonaka bc90321cbe Use tpcalib_trans() instead of own function. 2007-06-28 15:44:01 +00:00
nonaka 74c51d31a7 Implemented some HPC related ioctls for tpctl. 2007-06-28 15:41:09 +00:00
nonaka 902494bfa8 Fix compile failure if defined WSDISPLAY_COMPAT_RAWKBD. 2007-06-28 15:37:32 +00:00
nonaka fa07193f46 - Added RCS Id.
- cosmetic.
2007-06-28 15:35:59 +00:00
nonaka f96947e349 Added RCS Id. 2007-06-28 15:33:08 +00:00
nonaka dceaf63a2c remove unused function. 2007-06-28 15:32:35 +00:00
nonaka 5113d00707 cosmetic. 2007-06-28 15:31:04 +00:00
nonaka 1413f63080 Add options COMPAT_40. 2007-06-26 13:57:18 +00:00
ober 9a950d3d87 Updating GENERIC to include bpfilter to allow dhclient to work.
Also enable LFS which appears to work well so far.
2007-03-16 04:44:12 +00:00
drochner ab07e481e4 It doesn't make sense to specify "configuration" and "interface"
locators for uhub because a hub can't have sub-devices.
This might be sanity-checked eventually.
Same for ubt now after the change to device attachment.
2007-03-14 12:27:20 +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
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
nonaka 8d4fbc454e Add PXA2x0 RTC driver. 2007-02-25 13:46:40 +00:00
thorpej ae01c745cb TRUE -> true, FALSE -> false 2007-02-22 06:47:16 +00:00
ad 987a3f27ee Add missing headers. 2007-02-18 16:56:44 +00:00
ad e2147a0dfd + mutex.h, rwlock.h 2007-02-18 16:25:44 +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
ober 5c470843ae Updates to allow Zaurus screen to rotate 90 degrees to a usable state with the keyboard. Patch from peter@ copied from OpenBSD. Feedback and OK from matt@ 2007-02-02 02:10:24 +00:00
hubertf eda05c6413 Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
2007-01-29 01:52:43 +00:00
ober 8f81a1b5a8 Update zaurus port to include TODR/TIMECOUNTER.
zaurus# ./timetest -A -t 600
Will test active counter and counters with positive quality from saost_count(q=100, f=3686400 Hz) clockinterrupt(q=0, f=100 Hz) dummy(q=-1000000, f=1000000 Hz)
Testing time for monotonicity of timecounter "saost_count" for 600 seconds...
claimed resolution 271 nsec (3690036.900369 Hz) or better, observed minimum non zero delta 2712 nsec
switching to timecounter "saost_count"...
Testing time for monotonicity of timecounter "saost_count" for 600 seconds...
claimed resolution 271 nsec (3690036.900369 Hz) or better, observed minimum non zero delta 2712 nsec
switching to timecounter "clockinterrupt"...
Testing time for monotonicity of timecounter "clockinterrupt" for 600 seconds...
claimed resolution 10000000 nsec (100.000000 Hz) or better, observed minimum non zero delta 9999999 nsec
TEST SUCCESSFUL

ok peter@
2007-01-12 13:06:11 +00:00
peter 1fefcfbdc3 Remove __HAVE_NWSCONS and __GENERIC_SOFT_INTERRUPTS_ALL_LEVELS. 2007-01-08 20:56:34 +00:00
nonaka a2d64d3518 remove unused files. 2006-12-30 06:13:37 +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
nonaka 405a97b628 Fix evbarm compile again. 2006-12-18 15:30:56 +00:00
nonaka 9dc4fd032d Remove unused files. 2006-12-18 13:36:47 +00:00
peter f19ed1a8fa Update from the latest Zaurus source from NONAKA Kimihiro.
- LCD screen and keyboard are working now.
- Add bootstrap loader.
2006-12-17 16:07:11 +00:00
ober 9dd043ccd4 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:57:48 +00:00
ober c657d4868d Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:42:42 +00:00
ober 953d3b5b66 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:17:58 +00:00
ober d429c3dc76 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:07:52 +00:00