Commit Graph

151952 Commits

Author SHA1 Message Date
tsutsui
ed9d4b2af3 yamt-splraiseipl: works on sparc (SPARCstation1+) 2006-10-07 02:53:57 +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
13ad340578 PR/23774: Jorge Acereda: wiconfig exits on non-critical errors
Patch (with some style nits) applied, thanks!
2006-10-07 00:47:18 +00:00
elad
c9ed670b45 Create 'security.curtain' for documentation compatibility. 2006-10-06 23:01:12 +00:00
elad
516c371048 PR/13478: Greg A. Woods: some tty-related documentation fixes
Patch applied with "minor tweaks" from me, thanks!
2006-10-06 22:07:44 +00:00
rillig
e723f89fb8 When trying to copy many files into another file, provide a useful and
more specific error message instead of the usage().
2006-10-06 20:22:59 +00:00
tsutsui
5c5ee709b4 yamt-splraiseipl: tested on hp300 and news68k. 2006-10-06 19:18:49 +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
pooka
34a6a097c3 add util.h to SYNOPSIS 2006-10-06 15:31:20 +00:00
tsutsui
1713a1b672 yamt-splraiseipl: tested on sun2 (TME), sun3 (TME) and sun3x (3/80). 2006-10-06 13:48:57 +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
manu
56f4977415 Camelia cipher support as in RFC 4312, from Tomoyuki Okazaki
<okazaki@kick.gr.jp>
2006-10-06 12:02:26 +00:00
jnemeth
f086fb4812 note new sparc64 floppy support 2006-10-06 08:58:29 +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
rillig
30991c10e3 Fixed the wording of the <ctype.h> character classification functions by
always using "function" instead of "macro".

Changed "undefined result" into "undefined behavior" for argument values
outside the valid range. Since the character table is allocated via
malloc(), it _may_ happen that it starts at a page boundary, so that
negative values for the argument result in a segmentation fault. In that
case, there is no result at all.
2006-10-05 22:34:52 +00:00
plunky
c2f3e8c67b Override the lex rules after <bsd.prog.mk> to prevent the reachover build
from trying to build arlex.c in a readonly filesystem
2006-10-05 20:40:12 +00:00
christos
d1c132b639 add disklabel_gpt.h 2006-10-05 18:17:04 +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
he
47f7700709 We now need <sys/param.h> to bring roundup() into scope. 2006-10-05 16:25:38 +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
tsutsui
95f15ab375 Note sun3 MI softintr(9). 2006-10-05 14:58:41 +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
tron
886853e55b Ensure alignment of the structure used for RPC requests. This stop
"ypbind" from segfaulting under NetBSD-sparc64 when "ypwhich" is
used to display the current NIS server.
2006-10-05 09:18:11 +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
jnemeth
89484508a4 PR/34712 -- Kibum Han -- remove mention of MKSENDMAIL as sendmail is no longer 2006-10-05 02:49:06 +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
dogcow
52ba9f7bb5 add braces for if-else statement, in the event that DPRINTF is an
empty statement; shuts gcc up about 'empty statement in if-else'.
2006-10-04 23:55:22 +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
dogcow
aaaf91526d add braces for if-else statement, in the event that SCHED_ASSERT_LOCKED is an
empty statement; shuts gcc up about 'empty statement in if-else'.
2006-10-04 23:10:42 +00:00
dogcow
b7a0575ffb add missing initializer element 2006-10-04 22:44:50 +00:00
apb
4ba048923b Nitpicking. You won't see a difference in the text output, but there is
a difference in the postscript output.
2006-10-04 22:28:24 +00:00
salo
0c26015e92 Fix ypo. (hi abs!)
Noticed at #NetBSD-code.
2006-10-04 22:27:21 +00:00