Commit Graph

166260 Commits

Author SHA1 Message Date
weinem
0b27d36fa7 Fixes the wrong reference to s_time(1), which should be openssl(1). Closes PR misc/29998. Fix proposed by Igor Sobrado 2008-01-20 03:19:49 +00:00
dyoung
05e738a7c8 Add /usr/mdec/mbr_com0{,_9600}. Sort. 2008-01-19 23:30:08 +00:00
dyoung
1db95ef542 Sort. 2008-01-19 23:29:29 +00:00
dyoung
ebc5b3612c Use C99 array initializers for bridge_control_table[]. 2008-01-19 23:17:47 +00:00
dholland
bf86e75394 Improve an error message. Was buried in PR 6594 from Greg A. Woods. 2008-01-19 23:01:35 +00:00
aymeric
59e6a9a3d5 bump the default data size to 256MB (i.e. double it) because compiling
gcc during a standard native system build doesn't pass with 128MB.
2008-01-19 22:32:47 +00:00
dsl
da6834a7bc Regen for netbsd32_mremap 2008-01-19 22:25:36 +00:00
dsl
e7cd2030cf Add netbsd32 wrapper for sys_mremap(), compiles, and assuming the mmap()
wrapper is ok, it should work!
I presume the kernel knows not to map above 4GB though....
2008-01-19 22:25:12 +00:00
dyoung
da15c1a71e Let ether_ioctl() handle default SIOCSIFMEDIA/SIOCGIFMEDIA actions. 2008-01-19 22:23:35 +00:00
dyoung
5e35e05775 In wdcdetach(), if config_detach() fails, get out early. 2008-01-19 22:22:14 +00:00
dyoung
f049e8f385 Remove unused sc_media #define. 2008-01-19 22:20:42 +00:00
dyoung
df18183c3c There is really no use for switch when there is no case labels
except for the default, so remove the enclosing switch and the
default label.
2008-01-19 22:20:10 +00:00
dyoung
b480b62270 Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange().  Check for
a non-ENXIO error return from mii_mediachg().  (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines.  There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
        on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run.  I have compiled macppc, sparc64, i386.  I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
2008-01-19 22:10:14 +00:00
pooka
f7455b20d9 portal_advlock: badop -> eopnotsupp. I guess advlock can be called
for the root vnode and badop panics.

fix in PR kern/25393 by Laurent Sartran
2008-01-19 21:54:47 +00:00
dsl
3305a48bee Add two new versions of the mbr code that directly access a serial port.
'mbr_com0' assumes the BIOS has initialised the baud rate (etc)
'mbr_com0_9600' initialises the rate to 9600
Both have the functionality from 'mbr_ext' (ie they can boot from an
  extended partition).
As compiled, the io_address for the serial port is taken from BIOS data.
(this should keep tls@ happy!)
2008-01-19 21:01:34 +00:00
dsl
55433fb5ee Add an extra flag to indicate that the bootselect code wants an ascii
keypress for the 'default action' not a PS/2 keycode.
2008-01-19 20:53:49 +00:00
dyoung
ad45c434e8 Use the common code for ethernet media handling. Compiles on i386. 2008-01-19 20:25:44 +00:00
dyoung
d338f6b0ba Add default handling of SIOCSIFMEDIA/SIOCGIFMEDIA. 2008-01-19 20:11:52 +00:00
pooka
13e4604edb improve readdir, abortop and bmap description
PR kern/15062 by Love
2008-01-19 19:56:47 +00:00
rumble
b5723bb617 Ensure that if kobj_load fails we do not call kobj_close followed by
kobj_unload, as an unloaded kobj will already have been freed by an
implicit kobj_unload call in kobj_close. This fixes random panics when a
module fails to load.
2008-01-19 18:20:39 +00:00
he
05477634db Bump SYMTAB_SPACE to by 10000 bytes ot 310000 so that it fits again. 2008-01-19 18:14:16 +00:00
he
d8a7a4f892 Remove the debugging sections too when converting from an ELF
to an a.out file, after the addition of the "debugging always
included" file added recently.
2008-01-19 18:10:13 +00:00
chris
1c0a934301 Optimize cpu_switchto to store the new PCB address in r7, rather than
loading it from memory in 3 places.

Also adjust ordering of a few loads to try and avoid stalling.
2008-01-19 16:49:42 +00:00
christos
19884cbfe6 s/set/test/ 2008-01-19 16:05:34 +00:00
christos
f2df27b721 only include <sys/pset.h> if _NETBSD_SOURCE 2008-01-19 16:03:48 +00:00
aymeric
8a162df73e recognize (again) the Intrepid 2 gem adapter in the Powerbook5,8 2008-01-19 15:56:52 +00:00
kardel
7e076be4ab unbreak i8254_get_timecount() in environments where the
clock interrupt is derived from other sources (e.g. lapic)
and the i8254 timer is running the full cycle without
being used as clock interrupt source.
2008-01-19 15:06:52 +00:00
chris
4e4f6b2828 With the removal of IPKDB on arm, the undefined stack is only used to
bounce into SVC32 mode, there is no per-process data stored on it.

We can therefore use the undefined stack setup by the platform machdep.c
as a system wide undefined stack.

This removes the need for a per-process undefined stack, and the processor
mode switching overhead it causes in cpu_switchto.

The space freed in the USPACE is used to increase the per process kernel
stack size.
2008-01-19 15:04:09 +00:00
hubertf
3618b9ac2c It's RPCGEN_CPP, not RPCGEN_RSH
Pointed out on tech-userlevel by Anthony Mallet <anthony.mallet@useless-ficus.net>
2008-01-19 14:22:05 +00:00
chris
f2037fb52d Flag ipkdb.h as obsolete for arm and arm platforms. 2008-01-19 13:15:46 +00:00
chris
131e68c2e1 Remove arm support for IPKDB.
It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
2008-01-19 13:11:09 +00:00
chris
0d9c87e437 When chaning processor mode on ARM use cpsr_c, rather than cpsr_all. 2008-01-19 12:30:51 +00:00
reinoud
7211eae041 Fix grammar in msdos speed up note 2008-01-19 11:15:45 +00:00
skrll
2e64c5fc7e Typo in uai_interface_index.
PR/37792 from Yojiro UO.
2008-01-19 09:58:38 +00:00
tls
632396a909 Add constants for modular arithmetic operations other than exponentiation -- there's hardware out there which can do them. 2008-01-19 08:08:20 +00:00
sjg
807aff24d0 Implement -dl (aka LOUD) to override '@' at the start of script lines.
Based on supplied patch.

PR: 37202
2008-01-19 06:52:13 +00:00
ginsbach
b0f72f0138 Add regression test for inet_network(3). 2008-01-19 04:12:20 +00:00
ginsbach
0d03389c52 Treat input "0x" as invalid and return INADDR_NONE. Inspired by
FreeBSD-PR 92880.
2008-01-19 03:46:52 +00:00
simonb
741ec49962 Use M_80211_NODE as malloc type for a 80211 node as rest of net80211
code does, instead of M_DEVBUF.  Fixes panics if KMEMSTATS are enabled.
Also use M_ZERO instead of memset on malloc()'s results.
2008-01-19 03:45:08 +00:00
jmcneill
230c2072a3 Note addition of amd64 suppor for bktr(4) 2008-01-19 02:19:13 +00:00
ad
40e9e0d144 Fix a dumb bug. 2008-01-19 01:18:47 +00:00
rumble
8a7c44d074 Ensure that circular dependencies do not panic the machine by doubly
locking the same file. Remove the special self-dependant case previously
introduced, as the general case handles it properly.
2008-01-19 00:57:35 +00:00
he
9df302c742 Fix another place where the newly added partial debugging symbols
need to be omitted in ELF -> a.out conversion.
2008-01-19 00:03:39 +00:00
rumble
cab5348539 Deal with braindead modules that depend on themselves, rather than inducing
an ambiguous panic later on.
2008-01-18 16:41:46 +00:00
ad
718e62e993 Noisy printfs. 2008-01-18 16:28:58 +00:00
martin
3049bc6660 Use the new information about per-cpu mappings. Gdb now can examine
the interrupt stack.
2008-01-18 16:26:09 +00:00
martin
633ac5fa86 Extend the MD kernel core header, so that crashdumps record enough
information to recover all per-cpu mappings. This provides access to
the interrupt stack for example.
2008-01-18 16:24:42 +00:00
ad
096996ec09 Noisy printf 2008-01-18 16:22:50 +00:00
christos
4e783482fa Fix off-by-one buffer overflow. VU#203611, CVE-2008-0122 2008-01-18 16:20:57 +00:00
christos
00f5cbb6dc From Richard M Kreuter: GLOB_PERIOD fix for trailing ./ or ../ 2008-01-18 16:20:00 +00:00