Commit Graph

2008 Commits

Author SHA1 Message Date
gmcgarry
8cb6efd4df Add stdargs support for pcc. 2008-06-21 00:56:39 +00:00
chris
464e92d443 Fix two KASSERT(value | (C1|C2)) to KASSERT(value & (C1|C2)) so that it
tests for something, rather than always being true.

Pointed out by Andy Shevchenko in:
http://mail-index.netbsd.org/port-arm/2008/06/17/msg000255.html
2008-06-17 08:04:26 +00:00
rafal
3245ecab21 Let hpcarm kernels boot again after the merge of the armv6 branch. Fixes
PR port-hpcarm/38591

XXX: There is still a hard hang that I've seen on both shark and hpcarm in
the process exit path; I don't know much beyond that yet.
2008-06-13 13:24:10 +00:00
cegger
947c9ab610 use device_lookup_private to get softc 2008-06-13 08:49:15 +00:00
rafal
ba04e43210 Let the shark boot again. Fixes port-shark/38929. While I'm here fix the
splsoft... macros to always raise the IPL (oops!).
2008-06-11 23:31:35 +00:00
cegger
5402ae691c use device_lookup_private to get softc 2008-06-11 22:37:21 +00:00
ad
06c343ac94 vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both. 2008-06-04 12:41:40 +00:00
rafal
e437f08c73 Don't init sc_lock for each socket, since it's shared; caught by LOCKDEBUG. 2008-06-03 13:45:22 +00:00
hamajima
78c41e4bd3 - convert inline asm umull to C
- add "-march=armv4 -mtune=arm9" to CPUFLAGS

Relevant mailing list threads:
http://mail-index.netbsd.org/source-changes/2008/05/25/msg195537.html
http://mail-index.netbsd.org/port-arm/2008/05/26/msg000228.html
2008-05-27 14:31:36 +00:00
hamajima
87c715ebc7 fix countdown of "remaining" variable in delay(). Armadillo9 works again.
speed up an initial value  calculation of "remaining" variable in delay().
2008-05-25 03:57:22 +00:00
ad
1e62ed170b Remove unneeded playing about with kernel_lock. 2008-05-21 14:07:29 +00:00
reinoud
6225111ee5 Remove double copyright message by me 2008-05-19 15:30:51 +00:00
martin
5d1469bd77 Backout previous: the license sweep touched these files in error, so
restore the old license.
2008-05-10 15:31:03 +00:00
chris
fe50151584 Fix 9.5 year old buffer overflow.
It wasn't noticed till now as it wasn't overflowing onto anything
important (or was overwritten by the correct data).  Recent changes
meant irqstr was placed just before footbridge_intrq and so it trashed
the interrupt linked list, and so caused an alignment fault.

Note that cats still doesn't boot even with the change, as it hangs when
starting userland, I suspect an interrupt issue.
2008-05-10 15:29:25 +00:00
martin
2d265edbed Move TNF license to standard 2 clause variant 2008-05-03 23:06:06 +00:00
martin
07c5538d1f Merge multiple TNF licenses into a single one, move to 2 clause 2008-05-02 23:46:12 +00:00
martin
147dd598b0 Use standard 2 clause license 2008-05-02 22:03:23 +00:00
martin
04bdb2ab99 Replace TNF licenses with standard 2 clause variant. 2008-05-02 22:00:29 +00:00
matt
00caca484f Change IPL_LEVELS to NIPL.
current_spl_level is dead.
2008-04-29 17:09:47 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
matt
825088eda6 Merge kernel changes in matt-armv6 to HEAD. 2008-04-27 18:58:43 +00:00
tsutsui
05e60fd761 Remove local -fno-strict-aliasing hack.
sys/conf/Makefile.kern.inc has it for gcc4.
2008-04-27 03:23:13 +00:00
drochner
a4edd0fe73 try to update for OHCI device/softc split, untested
(I've asked for testing on Apr 3, w/o success.)
2008-04-26 14:57:44 +00:00
ad
284c2b9aef Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.
2008-04-24 18:39:20 +00:00
ad
30abe39468 - Retire SYCALL_MPSAFE. With the exceptions of darwin and irix emulations,
all system calls are now MPSAFE.
- Remove unneeded acquire/release of kernel_lock.
2008-04-24 11:51:18 +00:00
nonaka
262e51f19f fix typo. 2008-04-24 11:46:30 +00:00
rafal
e43f18015f Fix detection / attachment of CF / PCMCIA cards present at boot-time. This
was broken by one of the early vmlocking merges, which removed the kthread
that did the initial detection / attachment and instead called the code
directly from the PCMCIA controller attach method.

Submitted in PR port-hpcarm/37227 by Peter Postma; I've tweaked it ever-so-
slightly.
2008-04-20 16:47:52 +00:00
scw
3fd7f57e57 There's really no need to switch VM contexts within cpu_switchto() as
MI code always calls pmap_deactivate/pmap_activate on context switch.

Instead, just record the last active lwp (or NULL if it exited) and
defer switching VM context to pmap_activate(). This saves an additional
function call overhead in cpu_switchto().

While here, g/c unused cpuswitch.S local .Lblock_userspace_access.
2008-04-20 15:42:19 +00:00
chris
6cdf1e4c64 PXA270 uses a 3.25Mhz clock for OS timers, not 3.6864Mhz.
Also while here fix the delay loop used before timers are enabled to
cause a delay, by using a volatile int to do a countdown.  gcc has become
intelligent enough to optimize an empty loop away.

For delay on PXA270 we should use one of the other counters, and a 1Mhz
clock, so that we don't have to computer the counter increment.

XXX: also looks like there's a bug if the counter wraps, as delay doesn't
look like it allows for that.
2008-04-20 10:21:13 +00:00
drochner
ca15c5b536 add some missing softc initialisation necessary after the device/softc
split, approved by Chris Gilbert
2008-04-04 17:44:43 +00:00
drochner
46f8b82348 update for device/softc split,
compile-tested by yamt -- could someone please give it a functional test?
2008-04-03 15:08:58 +00:00
chris
1859a7ec67 Update pxa2x0 ohci support to match recent device_t/softc splitting on
ohci.

Also remove powerhooks (eventually it'll be pmf'd)

This is enough for host usb to work sometimes on a zaurus.
2008-03-31 23:18:49 +00:00
dogcow
85df549da3 fix device_t split fallout. 2008-03-31 02:39:40 +00:00
chris
248e511e80 Add missing bracing for some THUMB_CODE. 2008-03-29 22:05:15 +00:00
chris
a3aadfe6ff Fix LOCKDEBUG build on arm by:
* converting simple_{un}lock to mutex_enter/exit
* Using UVM_OBJ_INIT & DESTROY for the uvm_object in the pmap structure
2008-03-29 15:52:09 +00:00
chris
9c31e33724 Add help text to arm machine specific ddb commands.
Part of fix for port-arm/38311.
2008-03-26 13:01:13 +00:00
kiyohara
3720700f83 Enclose "#ifndef _ARM_PCI_MACHIDEP_H_". 2008-03-17 09:20:23 +00:00
rearnsha
d14160690e Allow detection of VFP devices on ARM11 cores. 2008-03-15 10:35:30 +00:00
rearnsha
b45167b608 VFP support. 2008-03-15 10:16:43 +00:00
cube
607ead0ef4 Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
chris
f033288a91 Fix acorn32 console beep to actually beep, rather than the kernel say:
aurateconv_fetch_to: internal error: unsupported encoding: enc=1 prec=8

The issue was that the playback filters for audio were being added to the
list in the wrong order.  The first entry in the list is closest to the
hardware, the last is closest to the audio buffer.  The code thought it
the other way around, so the incorrect formats were being passed down the
filter list.
2008-03-01 16:17:47 +00:00
chris
fa96148b7b Misc updates to hopefully improve vidcvideo console usability:
* add virtual consoles by using wsdisplay_vcons
* make use of generic scrollback support for consoles
* enable colour support for vidcvideo consoles
* use the default NetBSD font, rather than picking a sony one
* make kernel output green, so it's obvious.

This was tested at 800x600 in 8bpp on an A7000+ and 2MB VRAM RiscPC.

To actually benefit from these changes wscons=YES needs to be added to
your rc.conf
2008-02-29 00:37:26 +00:00
xtraeme
f402cadf9a Remove CTL_MACHDEP_NAMES, it's not used anywhere.
Ok by martin@.
2008-02-27 18:26:15 +00:00
dogcow
ae1faa8ff4 we need I32_bit, so #include <arm/armreg.h> 2008-02-25 06:32:29 +00:00
matt
95dedd171d no need to include opt_irqstats.h 2008-02-24 20:51:52 +00:00
matt
ccf3fcac58 allow arm11 to use high vectors. 2008-02-24 20:50:38 +00:00
chris
cf20f24b7b Micro-optimizations for arm.
Make enable and disable interrupts one instruction shorter.

Make cpu_cpwait() do nothing on anything other than an xscale, where it
will still call via the cpufuncs table.

This avoids loading a function from cpufuncs and then branching into it. On
older hardware the function does nothing, so this is just a waste of CPU
cycles.
2008-02-24 14:00:04 +00:00
dogcow
dd4be82d15 revert previous; as yamt pointed out, these bits are in <sys/cpu.h>. 2008-02-19 07:43:29 +00:00
dogcow
3faae34034 cargo-cult CPU_INFOITERATOR and _FOREACH to make kern_prf.c build again.
These should probably be abstracted out to sys/cpu.h at some point, since
they don't really change from arch to arch.
2008-02-19 07:04:41 +00:00
ad
372461e58e Add aliases for atomic_cas_foo_ni(). 2008-02-10 13:32:14 +00:00