Commit Graph

83952 Commits

Author SHA1 Message Date
mhitch
fb0de0c946 Use atomic operations for setting ssir. Fixes problem when compiled without
optimization of losing a scheduled software interrupt and stalling the
softclock processing.
2006-10-07 17:31:44 +00:00
yamt
87f4568336 tcp_output: remove duplicated code and tweak indent. no functional changes. 2006-10-07 16:16:42 +00:00
rpaulo
07bf961df3 PR 10301: Change "oops" to something more interesting. (but less funny :-). 2006-10-07 15:49:00 +00:00
tsutsui
8654277cae Remove unneeded cast which eliminates part of valid interrupt mask bits.
Closes PR powerpc/33108.
2006-10-07 14:59:52 +00:00
bjh21
67b03eaa6b in L_cksumdata, stash R14 on the stack before doing anything. This is
helpful on acorn26, since kernel-mode page faults corrupt R14.  Doing this
seems to help with the occasional crashes I've seen in this routine.
2006-10-07 14:57:58 +00:00
tsutsui
931bfebdc1 Fix an obvious typo. Patch from seebs in PR port-powerpc/33107. 2006-10-07 14:44:22 +00:00
peter
75809b1d7f Fix compilation with IRFRAMET_DEBUG (use %zu/%zd for sizes). 2006-10-07 14:31:53 +00:00
peter
0e931e0449 Fix compilation with AN_DEBUG (use %zu instead of %d). 2006-10-07 14:30:27 +00:00
peter
677fb8d602 Backout audio changes that crept in (not ready yet). 2006-10-07 14:27:54 +00:00
peter
fe52b6e2b5 Add hpcarm devices. 2006-10-07 14:17:12 +00:00
peter
5231df85b3 Add support for touches on the HP hard icons, mostly copied from hpcsh but
also with support for raw kbd (for X).

No objection on port-hpcarm.
2006-10-07 14:09:07 +00:00
peter
8795f0e08d Remove the config hook for handling the lcd light, this is now handled by
the powerhooks.
2006-10-07 14:04:09 +00:00
peter
d0109f306b Jornada 720: change key 127 to KEY_SPECIAL_OFF. 2006-10-07 14:03:12 +00:00
peter
58b4265bc6 Listen for "suspend button" events and do a suspend request to hpcapm when
we receive such event.

No objection on port-hpcarm.
2006-10-07 14:02:09 +00:00
peter
c0a37e6e11 Some cleanup in the comments, simplify some code. 2006-10-07 13:53:24 +00:00
peter
f151a2cf07 Add sleep function holder and call it in machine_sleep (from hpcsh). 2006-10-07 13:50:16 +00:00
peter
46fa45bd12 Remove an unused function. 2006-10-07 13:42:17 +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
gdamore
83060aef95 Active SPI connected STMicro serial flash. Note that this driver is still
a bit rudimentary, but it works well enough to read flash at least.
2006-10-07 07:24:23 +00:00
gdamore
e7ee9e199f Add major for spiflash. Note that this major should probably be moved out
to device-independent space, but we might well choose to wait to do that
until _after_ we have a full MI flash framework.
2006-10-07 07:22:36 +00:00
gdamore
c36ea7cf37 Add spiflash driver, and M25P instance, used for STMicro flash devices
found on Meraki Mini (for example).
2006-10-07 07:21:13 +00:00
gdamore
5bf8068cbb Add Atheros SPI controller. This is a "pseudo-controller", as it has some
artificial limitations which really only make it good for use with serial
flash devices.  One of the more annoying limitations is a restriction that
it can only transfer 8 bytes at a time. (4 command/address, plus 4 data.)

The driver includes design to work around those limitations, but these
changes are only appropriate for serial flash devices.

This driver is designed to run in interrupt driven mode, but due to lack
of adequate documentation, we run it in polled mode.

A subsequent commit will introduce the MI M25P flash driver, which has been
tested and is known to function somewhat reasonably..
2006-10-07 07:18:02 +00:00
tsutsui
e44b991120 Fill undefined region (char 0x7f-0xa0) on ISO-8859-1 with dummy data
like other fonts. Closes PR kern/12899.
2006-10-07 02:34:59 +00:00
tsutsui
34e0f81335 Add kernel_text symbol for pmap(1). Closes PR kern/19877. 2006-10-07 01:21:47 +00:00
elad
c9ed670b45 Create 'security.curtain' for documentation compatibility. 2006-10-06 23:01:12 +00:00
tsutsui
43bb02c059 Use #ifdef _AMIGA_INTR_H_ rather than _MACHINE_INTR_H_
to protect multiple inclusion.
2006-10-06 18:16:46 +00:00
gdt
faa429b9b4 add missing d_type member in cdevsw initializer 2006-10-06 17:54:05 +00:00
christos
7af45af282 Fix an exploitable integer overflow found by Chris Evans of Google Security. 2006-10-06 16:17:11 +00:00
tsutsui
f7d5502c71 Use IPL_BIO rather than (temporarily defined) IPL_SOFT_LEVEL2.
Both of them share cpu ipl 2, and maybe it's intentional design
since fd.c uses ipl 6 for hardware interrupt.
2006-10-06 12:54:14 +00:00
jnemeth
6238d5fa66 Initial support for floppy drives on sparc64. This has been tested
on an Ultra 2 and works fine, apart from formatting which is known
to be broken.  It failed to work on an ebus machine.  The ebus
support compiles fine, but I don't have hardware for testing.  This
code is based on the sparc driver with hints from OpenBSD on how
to do the sbus and ebus attachments, along with help from martin@
and mrg@.

Initial commit approved by martin@

TODO:
- fix ebus support
- fix XXX issues
- check resource deallocation
- fix formatting
- merge remaining differences from sparc driver
- split out back end chip support
- have sparc driver use new common back end chip support
- adapt to newlock when branch is ready
- adapt to "disk-info" property dictionary
2006-10-06 08:44:59 +00:00
dogcow
1d235c3fdc add initializers so gcc stops whining. 2006-10-06 03:52:53 +00:00
mrg
080ac7b6c8 add a missing semicolon from the previous commit. 2006-10-06 03:20:47 +00:00
chs
7ddbeb08d1 move includes only needed for kernel inside ifdef _KERNEL. 2006-10-06 02:40:58 +00:00
yamt
199c49bccb handle_wedges: fix a typo. (NOCREAD -> NOCRED) 2006-10-06 02:29:08 +00:00
dogcow
62ce183fe4 fix build error in mount_sysvbfs. 2006-10-06 02:17:25 +00:00
martin
fab4ae4892 I can not test this right now, but the equivalent change was needed on
sparc64 to make root on raid shutdown cleanly: after using opendisk()
and querying wedges, we need to VOP_CLOSE() the resulting vnode.
2006-10-05 22:43:35 +00:00
martin
0d3d26d9e7 After detecting wedges, close the disk vnode - otherwise things like
root on raid 1 will not be happy - fixes PR kern/34696.
2006-10-05 22:41:31 +00:00
christos
be6f616394 Install disklabel_gpt.h needed by the gpt partitioning tool (which is coming
soon)
2006-10-05 18:14:11 +00:00
oster
2992626c96 Revert previous change: Remove an unused variable declaration that was
(likely accidentally) added as the only change in the last commit.
2006-10-05 17:59:36 +00:00
tls
8cc016b4bc Protect calls to pool_put/pool_get that may occur in interrupt context
with spl used to protect other allocations and frees, or datastructure
element insertion and removal, in adjacent code.

It is almost unquestionably the case that some of the spl()/splx() calls
added here are superfluous, but it really seems wrong to see:

	s=splfoo();
	/* frob data structure */
	splx(s);
	pool_put(x);

and if we think we need to protect the first operation, then it is hard
to see why we should not think we need to protect the next.  "Better
safe than sorry".

It is also almost unquestionably the case that I missed some pool
gets/puts from interrupt context with my strategy for finding these
calls; use of PR_NOWAIT is a strong hint that a pool may be used from
interrupt context but many callers in the kernel pass a "can wait/can't
wait" flag down such that my searches might not have found them.  One
notable area that needs to be looked at is pf.

See also:

http://mail-index.netbsd.org/tech-kern/2006/07/19/0003.html
http://mail-index.netbsd.org/tech-kern/2006/07/19/0009.html
2006-10-05 17:35:19 +00:00
chs
768e5cc89e in cpu_reboot(), only halt the other CPUs after we've done the powerdown stuff.
the ACPI code may end up removing some pmap entries, which wants the other
CPUs to still be running to handle TLB invalidations.
2006-10-05 15:10: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
tsutsui
0b2c7040b5 Make sun3 use common sun68k/sun68k/isr.c, sun68k/include/cpu.h and
sun68k/include/intr.h.

This also means now sun3 has GENERIC_SOFT_INTERRUPTS support,
so also adapt fd.c and zs.c to MI softintr(9) APIs.

(I'll also update related sources in yamt-splraiseipl branch later)
2006-10-05 14:46:11 +00:00
tsutsui
f2ea89d23a Minor cleanups before isr.c merge with sun3:
- include <m68k/cpu.h> rather than <m68k/m68k.h> in <sun68k/cpu.h>
- wrap M68K_VAC definition with #ifndef _SUN3X_ in <sun68k/cpu.h>
- move setsoftnet() macro from <sun68k/cpu.h> to <sun68k/intr.h>
- move declarations for isr_soft_request() and isr_soft_clear() from
  sun2/include/intr.h to <sun68k/intr.h>
- remove extern keyword from function declarations
2006-10-05 14:24:09 +00:00
tsutsui
956c3ee3f1 Remove incorrect comment. 2006-10-05 14:12:36 +00:00
tsutsui
861b9568df Don't call wdc_init_shadow_regs() before struct ata_channel is
properly initilized in wdc_obio_attach().
Fixes NULL pointer deref during boot.
2006-10-05 09:34:52 +00:00
jnemeth
eae4b7db79 more typos and spacing 2006-10-05 08:24:32 +00:00
skrll
3974fd04a1 Remove an unnecessary goto 2006-10-05 07:04:31 +00:00
skrll
7b79ef2734 typo 2006-10-05 07:02:21 +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