2008 Commits

Author SHA1 Message Date
briggs
fc7b39db52 Get DOMAIN_CLIENT directly from arm/arm32/pte.h instead of from genassym
to avoid redefinition when both assymh and pte.h are included (as in
INTEGRATOR's intmmu.S, which uses more macros from pte.h).
2007-02-19 01:59:23 +00:00
ad
7cfa6abfaf More signals/locking changes. 2007-02-18 21:10:32 +00:00
ad
be01a71411 + mb_memory() 2007-02-18 21:07:40 +00:00
matt
7a2b6251f2 Adapt to newlock2 2007-02-18 21:04:01 +00:00
matt
ac1041d913 Move declaration of spl_smasks. make spl_smasks and soft_interrupts static. 2007-02-18 21:03:22 +00:00
matt
c47c836ecb Equate mb_write and mb_read to drain_writebuf (from cpu.h) 2007-02-18 21:01:50 +00:00
briggs
069c9702dd Adapt to newlock2. 2007-02-18 20:05:20 +00:00
briggs
04a29fca2b Adapt to newlock2. 2007-02-18 19:59:25 +00:00
briggs
5f2083f440 Install atomic.h, as needed by the installed rwlock.h. 2007-02-18 15:53:55 +00:00
matt
981ae6645d Don't export spl_smasks or soft_interrupts. They are local to intr.c
Make sure that softintr_init() is called when needed.
Assume __HAVE_GENERIC_SOFT_INTERRUPTS is defined (since newlock2 requires it).
2007-02-18 07:48:20 +00:00
matt
c51fe0708a Changes for newlock2. 2007-02-18 07:25:34 +00:00
matt
3a0eef4ed3 Add <arm/mutex.h> and <arm/rwlock.h>
Add atomic_cas to <arm/atomic.h> for use by <rwlock.h>
2007-02-18 07:24:42 +00:00
matt
37f7079751 Call softintr_init() 2007-02-18 07:20:40 +00:00
matt
d44aac9ad3 Map IPL_SOFTxxx to SI_SOFTxxx. 2007-02-18 07:17:18 +00:00
matt
39cadbf356 Add __HAVE_GENERIC_SOFT_INTERRUPTS support for shark. This was done by
extenting the current arm generic intrs to support softintrs.  Add
IPL_SOFTCLOCK, IPL_SOFTNET, IPL_SOFTSERIAL.
2007-02-18 07:13:17 +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
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
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
ichiro
966d923382 move devices entry to MD/conf/files.*
catch up to current kernel configuration
2007-01-08 16:21:45 +00:00
christos
467eaaa9c1 Add generic TOD support. From Bucky Katz. 2007-01-06 16:18:18 +00:00
christos
897538853e Fix branch handling in ddb. From Bucky Katz. 2007-01-06 16:14:44 +00:00
christos
acedbdccc7 Update to the latest version. From Bucky Katz. 2007-01-06 16:10:32 +00:00
christos
ee28c46912 Update the gpio code to the latest. From Bucky Katz 2007-01-06 16:08:54 +00:00
christos
a7d00fb3d8 PR/34683: Bucky Katz: RTC driver
The attached patch adds support for the OMAP Real Time Clock.
2007-01-06 00:59:45 +00:00
christos
faa54b03a6 PR/34682: Bucky Katz: Add support for the OMAP GPIO blocks. 2007-01-06 00:58:04 +00:00
christos
4f74175a01 PR/34680: Bucky Katz: OMAP5912 support:
Attached is a patch to add generic base support for systems based on the
OMAP 1 family.  The devices supported in this patch are serial console
and MPU timers for OS timing purposes.
2007-01-06 00:53:11 +00:00
christos
87f8f1a9a7 Scott Allan in http://mail-index.netbsd.org/port-arm/2006/07/31/0000.html
Patch to add support for ARM9E
2007-01-06 00:50:54 +00:00
christos
d4a240549b From Scott Allen in http://mail-index.netbsd.org/port-arm/2006/07/26/0000.html
I ran into a problem when I tried to set up a mapping that started at virtual
address 0xFFF00000 and was 0x00100000 long.  In other words, the mapping
should have gone to the end of the 32 bit address space.  The mapping was made
with no problem, but pmap_devmap_find_va() wouldn't find an address within the
mapping.  For example, if I told it to find a mapping for 0x1000 bytes at
0xFFF01000, it would try to make sure that 0xFFF01000 was greater than
0xFFF00000 and that (0xFFF01000+0x1000) was less than (0xFFF00000+0x00100000).
However, that last expression (0xFFF00000+0x00100000) wrapped around to be
simply 0x00000000 so it wasn't found.  This patch fixes this problem in
pmap_devmap_find_va() and pmap_devmap_find_pa() by subtracting one off of the
sizes to be compared, so in my example, (0xFFF01000+0x1000-1) will be less
than (0xFFF00000+0x00100000-1).
2007-01-06 00:40:47 +00:00
christos
3f32518db7 From Scott Alan in http://mail-index.netbsd.org/port-arm/2006/07/26/0000.html
This one is really simple.  I wanted to use KERNEL_BASE in an assembly source,
but arch/arm/include/arm32/vmparam.h wasn't protected by #ifndef
__ASSEMBLER__.  The patch adds the protection.
2007-01-06 00:39:02 +00:00
christos
1e1acd26ce From Scott Alan in http://mail-index.netbsd.org/port-arm/2006/07/26/0000.html
identify_arm_cpu() prints out a helpful message when it detects that you're
trying to run on a CPU that you didn't configure for.  Unfortunately, the
check for class_option being NULL is backward, so it either won't print the
class_option, or it will try to dereference a NULL.  The patch just flips the
!= NULL to be == NULL.
2007-01-06 00:37:28 +00:00
christos
2eb1bf64a3 PR/34679: Bucky Katz: Basic support for the TI OMAP family of ARM processors
Attached is a patch to add generic base support for systems based on the
OMAP 1 family.  The devices supported in this patch are serial console
and MPU timers for OS timing purposes.

This patch depends upon patches previously sent by Scott Allan: "Three
small patches for ARM" on 07/26/2006 and "Patch to add support for
ARM9E" on 07/31/2006.

A staggering number of mobile phones, PDAs, and other portable devices
are based on these systems, and OMAP would make a great addition to
NetBSD.  If there are any concerns we can address or other things we can
do to get this code accepted upstream please let me know, thanks,
2007-01-06 00:29:52 +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
wiz
3ed1aa9185 Spell "separate" correctly. From Zafer Aydogan. 2006-12-25 18:39:47 +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
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
ac86e5557a Update from the latest Zaurus source from NONAKA Kimihiro.
Includes drivers for I2C, I2S, PCMCIA controller, USB device controller,
OHCI USB controller (from OpenBSD) and some improvements to the LCD
controller driver.
2006-12-17 16:03:33 +00:00
ober
dbc112ba13 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 03:35:51 +00:00
kiyohara
3871190271 Add definition the HWUART (and NSSP). 2006-12-10 12:46:48 +00:00
scw
92bdf64528 Repeat after me: Compile/Test before commit. 2006-12-10 10:30:55 +00:00
scw
b9811c82af Support the IXP425 watchdog timer. 2006-12-10 10:03:22 +00:00
scw
bdea1361ab Add a port of Sam Leffler's IXP425 micro-engine support (from FreeBSD).
This is very much a work in progress. At the present time, only Ethernet
is supported.
2006-12-10 10:01:49 +00:00
bjh21
1372543b73 The ARM7500 ID is no longer a guess -- I've confirmed it on a real ARM7500. 2006-11-26 15:10:18 +00:00
christos
c0179c282a spell precede; from Zafer 2006-11-25 16:48:31 +00:00
scw
e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
wiz
d6a98601a8 s/heirarchy/hierarchy/, from Zafer. 2006-11-24 21:20:05 +00:00