dyoung
7377de8f1d
Make this build on -current.
2009-03-27 16:10:50 +00:00
dyoung
a6cfb08d9c
If defined(_KERNEL), #include <sys/types.h>, otherwise #include
...
<stdbool.h>, for the bool definition that we need. intr.h only got the
definition by chance, before.
2009-03-27 16:09:24 +00:00
dyoung
103f0ed593
If defined(_KERNEL), #include <sys/types.h>, otherwise #include
...
<stdbool.h>, for the bool definition that we need. cpu.h only got the
definition by chance, before.
2009-03-27 16:07:37 +00:00
dyoung
098e562dfd
Explicitly #include <sys/device.h> and <sys/evcnt.h>. These files only
...
got the definitions they needed by chance, before.
2009-03-27 15:47:33 +00:00
pooka
c9e578684e
rump_virtif_create prototype
2009-03-27 13:47:53 +00:00
pooka
06dceb4d08
* make interface creation open /dev/tapn for interface n
...
* create "unique" enaddr
* do send in async context
2009-03-27 13:46:34 +00:00
pooka
7a82389053
shotgun approach to rump syscalls
2009-03-27 13:18:27 +00:00
tsutsui
f8fb75a405
Use bus_space(9) to access registers. SETREG() macro using bogus casts
...
against packed structures doesn't work on gcc4. (no character on screen)
See also:
http://mail-index.NetBSD.org/port-sparc/2003/11/11/0002.html
Should be pulled up to netbsd-4 and netbsd-5.
2009-03-27 12:25:41 +00:00
tsutsui
030266c11f
Check a correct bit for ip4csum-rx. Reported privately on PR kern/40955.
2009-03-27 12:19:17 +00:00
drochner
643809db9f
namespace sanity: TIMER_RELTIME is _NETBSD_SOURCE only
2009-03-27 11:06:26 +00:00
drochner
109046eebe
namespace sanity: SI_LWP and SI_NOINFO are _NETBSD_SOURCE only
2009-03-27 11:05:43 +00:00
drochner
083fa0419a
In sigput(), save the siginfo no matter whether SA_SIGINFO is set or not.
...
There are also sigtimedwait(2) et al. to catch signals without invoking
a signal handler. Fixes PR kern/41076 by Matteo Beccati (the first
test case, where the signal is sent before sigwaitinfo(2) gets called).
2009-03-27 10:58:38 +00:00
drochner
fb693f55f7
apply patches from upstream CVS to fix 3 security problems:
...
-ASN1 printing crash (CVE-2009-0590)
-Incorrect Error Checking During CMS verification (CVE-2009-0591)
-Invalid ASN1 clearing check (CVE-2009-0789)
2009-03-27 10:41:29 +00:00
hannken
3e6c1c5047
Document ipfilter_flags.
2009-03-27 09:11:36 +00:00
dholland
c963cec011
Add the other three PCI ids for the nvidia MCP65 SATA controller to
...
the quirk table. This way they attach as ahcisata and work, instead of
attaching as viaide and failing miserably.
Fixes PR kern/37826.
XXX: There are a bunch of additional MCP67 and MCP73 PCI ids that
XXX: should probably be added also, but I don't want to do that without
XXX: further investigation and testing.
2009-03-27 06:36:49 +00:00
pooka
696e7eae87
fix botch in previous
2009-03-27 06:35:10 +00:00
cegger
8c5327a270
use auto-negotiation for manual media type selection.
...
This should fix establishment of 10/100Mbps link on L1E.
Helpful to reduce watchdog timeout problems on L1 (age(4)) reported by Jochen Kunz.
From FreeBSD via OpenBSD.
2009-03-27 04:42:50 +00:00
gmcgarry
65b9855fd5
Replace gcc initialisers with c99 designated initialisers.
2009-03-26 22:22:14 +00:00
he
c05f1c0f90
Make the function declaration the same for the big-endian case as
...
for the little-endian case, and consistent with the libkern.h
declaration. Fixes build problem for at least hp700 and evbbarm-eb.
2009-03-26 22:18:14 +00:00
gmcgarry
a6dda89bce
Pass argument to __aligned() through __STRING() so that it is correctly expanded. Now __aligned(CACHE_LINE_SIZE) works with pcc.
2009-03-26 22:16:44 +00:00
joerg
70ea994ea4
Avoid .Xo/.Xc. Fix quoting of commands to give the intended effect.
2009-03-26 21:34:11 +00:00
pooka
f75bcfdea3
pretend to do some sort of cleanup in error branches
2009-03-26 20:05:07 +00:00
joerg
d478d391f3
Correctly terminate quotation.
2009-03-26 17:33:41 +00:00
joerg
7e2cf787af
Quote "..." at start of line.
2009-03-26 17:32:24 +00:00
drochner
c4bdad9349
fix typo in sigevent defaults
2009-03-26 16:55:37 +00:00
pooka
c67ff2932c
Don't abort() if the kernel complains we supplied an invalid type
...
for lookup, as this most likely means that the fs has some bad file
on it. Rather, just flag an error to the user and be happy.
2009-03-26 14:03:30 +00:00
wiz
61ae4edccb
New sentence, new line.
2009-03-26 09:56:17 +00:00
pooka
32852ecef0
Apply revisions 1.23 and 1.24 from FreeBSD to autocalculate the
...
necessary geometry when creating a file system directly to a file.
In addition, when creating, do not complain about the file not
being char special and do not try to execute device ioctl's on it.
2009-03-26 08:39:24 +00:00
pooka
02040931ba
Handle eof a bit differently. E.g. ffs and msdosfs seem to have
...
a quite different opinion about what happens in bmap beyond EOF,
so avoid calling it.
2009-03-26 08:22:22 +00:00
uebayasi
df37ad1752
Correct the order of arguments in EXAMPLE. Bump date.
2009-03-26 05:00:10 +00:00
macallan
31e90ebd10
add a few more register definitions, needed by the latest crime_drv.
2009-03-26 04:11:58 +00:00
taca
ad87c6c8be
Latest OpenSSH is 5.2/5.2p1.
2009-03-26 03:15:05 +00:00
mrg
b73a4b4545
avoid a useless uninitialised use, picked up by gcc -O3.
2009-03-26 01:52:24 +00:00
taca
99cf38cc25
OpenSSL version 0.9.8k released.
2009-03-26 00:45:57 +00:00
dyoung
3a72540da6
This only got the definition of device_xname() by chance, so explicitly
...
#include <sys/device.h>.
2009-03-26 00:30:10 +00:00
dyoung
b63bf39017
It is only by chance that this gets the prop_array_t definition that it
...
needs, so explicitly #include <prop/proplib.h>.
2009-03-25 23:35:54 +00:00
dyoung
9fd1ce14c3
It is only by accident that these get the definitions they need from
...
<sys/device.h>, so explicitly #include <sys/device.h>.
2009-03-25 22:56:00 +00:00
dyoung
61cf8013a0
It is only by accident that this gets the definitions it needs from
...
<sys/evcnt.h>, so explicitly #include <sys/evcnt.h>.
2009-03-25 22:54:56 +00:00
dyoung
f81f62377d
It is only by accident that these get definitions they need from
...
<sys/device.h>, so explicitly #include <sys/device.h>.
2009-03-25 22:53:51 +00:00
dyoung
6506e7a17d
ctags(1) gets confused by 'typedef struct X { } X_t', so break 'typedef
...
struct pmf_private { ... } pmf_private_t' into a struct definition and a
typedef definition.
2009-03-25 21:48:36 +00:00
dyoung
5a65a2f318
DVF_ACTIVE is unconditionally set when we attach a device, so
...
unconditionally clear it after we give a device's deactivate() routine a
chance.
2009-03-25 21:43:42 +00:00
dyoung
c42425328d
When we attach a pseudo-device, set its cfdata_t's cf_fstate to
...
FSTATE_FOUND, as we do in config_attach_loc(), in order to avoid a
DIAGNOSTIC panic in config_detach() if we detach the device.
2009-03-25 21:28:50 +00:00
reinoud
b9f5db933c
Fix possible overshoot when allocating from a space bitmap when ffs(3) returns
...
a too big offset for the bitmap.
2009-03-25 20:04:52 +00:00
tls
3559a90485
Fix compilation error on 64-bit platforms.
2009-03-25 19:21:39 +00:00
tls
a34cd18b76
Fix build problems caused by crc32 addition to libkern. Also, this makes
...
the i386 bootblocks about 2K smaller than they were before we monkeyed
with crc32 at all.
2009-03-25 18:41:06 +00:00
tsutsui
6c51ef2df9
Add 4.0.1 config files for reference.
2009-03-25 15:57:17 +00:00
tsutsui
90ae2f0e0c
Use nbcompat lib in src/tools/compat so that this can be built
...
on non-NetBSD hosts. Tested on CYGWIN_NT-5.1-1.5.25-i686.
XXX: It's enough to have generated boothfs.uue binary
XXX: (for mkisofs -boot-hfs-file option), rather than
XXX: building a tool and generating it at run time.
2009-03-25 15:36:08 +00:00
tsutsui
81d9503824
Use nbcompat lib in src/tools/compat so that this can be built
...
on non-NetBSD hosts. Tested on CYGWIN_NT-5.1-1.5.25-i686.
XXX: this should be merged into src/usr.sbin/installboot.
2009-03-25 15:26:49 +00:00
pooka
c2f2875913
Need to compile with -D_REENTRANT, otherwise calling putchar() can
...
cause libc to commit suicide (!!!).
2009-03-25 14:05:03 +00:00
tsutsui
19165a6c8e
Remove an extra escape char. bash(1) complains about it.
2009-03-25 13:53:05 +00:00