joerg
0555fac4ac
~0 and -1 are the same for two-complement machines. ISO C says left
...
shifts of negative values are UB, so do the shift for the unsigned
equivalent and cast to int afterwards.
2015-08-28 09:42:07 +00:00
pooka
3030f667e1
Convert to __cpu_simple_lock_nv_t. Somehow missed alpha in the earlier
...
commit. Thanks to uebs for pointing it out.
2015-08-28 09:30:01 +00:00
uebayasi
b5595827d0
Simplify.
2015-08-28 09:16:29 +00:00
nonaka
d29e8b42dd
Add ifconfig.if(5) to SEE ALSO.
2015-08-28 09:06:45 +00:00
uebayasi
54e231918a
Retire optional rule' argument of
file' command.
...
This has existed since Rev. 1.1 of Torek's config(8) [1], but probably has
never been used by anyone.
(I can not imagine how a `file' like look like if `rule' is specified.)
[1] http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.sbin/config.new/Attic/files.c?rev=1.1
2015-08-28 09:04:02 +00:00
uebayasi
36644ae2ff
Error out if a given path is absolute.
2015-08-28 08:56:39 +00:00
uebayasi
47065f5afc
Accept only relative paths (from $S) for file' and
object'. Simplify code.
...
config(1) does not need to be super-smart about path handling, because it is
usually used with make(1), that is much smarter.
Pre-compiled object files, specified using `object', are regarded as read-only
input, thus they should be put under $S (or $S/..), as part of a source tree.
2015-08-28 08:31:28 +00:00
wiz
571f656db2
Bump date for previous.
2015-08-28 08:01:15 +00:00
wiz
b4cc4d35f4
Remove reference to non-existing hostname.if(5).
2015-08-28 08:00:32 +00:00
knakahara
bb29ae9814
fix interrupt_* stubs. reported by skrll@n.o
2015-08-28 07:18:39 +00:00
mlelstv
462e0f0bd2
remove unused include sys/rndsource.h
2015-08-28 06:04:43 +00:00
mlelstv
432d09fb65
Prevent race condition where two threads can defer a buffer.
2015-08-28 05:49:31 +00:00
uebayasi
50408f97eb
Global paths looked up at output stage (mk*()) are relative to `srcdir'.
...
Ignore "prefix" by not calling sourcepath().
2015-08-28 03:55:15 +00:00
uebayasi
0b9ddf3cc0
Paths given to "file" and "object" are relative from "prefix" if defined.
2015-08-28 02:59:09 +00:00
uebayasi
b225b197bd
Try config(5) "prefix" to shorten lines.
2015-08-28 02:33:59 +00:00
uebayasi
a72d45f1a5
+ suffix rules
2015-08-28 01:01:57 +00:00
jklos
df1053a2d2
Cosmetic fix for VAXstation 4000/90, 90a, 96 dmesg output from Felix
...
Deichmann.
2015-08-27 17:18:58 +00:00
mrg
4ff1396ff2
s/dirname/dirpath/ to avoid potentially shadowing dirname(3).
2015-08-27 17:12:18 +00:00
nonaka
e10e75fcab
note rtwn(4).
2015-08-27 14:17:14 +00:00
nonaka
5e4eaa25ce
Added rtwn(4) for Realtek RTL8188CE/RTL8192CE PCIe 802.11b/g/n wireless network
...
devices. Ported from OpenBSD.
2015-08-27 14:04:07 +00:00
rjs
aefbc039cf
Don't make fifofs test depend on rump.
2015-08-27 12:59:36 +00:00
pooka
a3a1685910
update c++/volatile/constexpr entry
2015-08-27 12:32:05 +00:00
pooka
01d7ebdd80
Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant
...
pthread types in C++ builds, attempt 2.
The problem with attempt 1 was making assumptions of what the MD
__cpu_simple_lock_t (declared volatile) looks like. To get a same type
except non-volatile, we change the MD type to __cpu_simple_lock_nv_t
and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t.
IMO, __cpu_simple_lock_t should not be volatile at all, but changing it
now is too risky.
Fixes at least Rumprun w/ gcc 5.1/5.2. Furthermore, the mpd application
(and possibly others) will no longer require NetBSD-specific patches.
Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2.
Based on the patch from Christos in lib/49989.
2015-08-27 12:30:50 +00:00
uebayasi
5e9af25b8a
+ copy symtab
2015-08-27 10:22:12 +00:00
phx
1e0831b986
Added some missing SPI device names.
2015-08-27 09:59:06 +00:00
nonaka
9d7098509e
regen
2015-08-27 09:34:18 +00:00
nonaka
bdf701803a
Added Realtek RTL8192CE.
2015-08-27 09:30:36 +00:00
christos
19d6b8392c
PR/50179: Timo Buhrmester: sh(1) variable expansion bug
2015-08-27 07:46:47 +00:00
uebayasi
0d89ac2159
netbsd depends on $S/kern/kern_ksyms_buf.c; rarely updated but better safe.
2015-08-27 06:28:09 +00:00
mlelstv
7874349bce
Make dksubr use a spin-mutex again, since some drivers still call dk_done
...
from hardware interrupt. Instead, release mutex while calling start routine.
The buffer peek/use/get sequence which can no longer be atomic. So consume
the buffer directly and on error privately save and retry the buffer later.
The dk_drain function is used to flush such a deferred buffer together with
the buffer queue.
Adjust drivers to use dk_drain.
Fix an error path where dk_done was called while the lock was already held.
2015-08-27 05:51:50 +00:00
uebayasi
d6cc60697d
Tweak previous.
2015-08-27 03:20:13 +00:00
uebayasi
33dfd38556
Echo exact objects (swap*.o etc.) when linking kernel.
2015-08-27 03:17:46 +00:00
uebayasi
144fbf59d9
Constify a little.
2015-08-27 02:43:20 +00:00
msaitoh
a66522c8d5
regen.
2015-08-26 09:24:01 +00:00
msaitoh
de016d89bb
Add Intel PCIe NVMe SSD.
2015-08-26 09:23:39 +00:00
martin
c36c18165c
Mark the ssh test as expected failure pointing to PR lib/50174
2015-08-26 09:19:20 +00:00
uebayasi
1e1f20e153
One more about linker script, another about genassym.
2015-08-26 06:38:57 +00:00
mlelstv
6e7966e6f5
Use getfsspecname also when not found in /etc/fstab.
2015-08-26 05:41:20 +00:00
uebayasi
54882650b0
Have MI genassym.cf.
2015-08-26 03:00:52 +00:00
uebayasi
282cd20ff5
Don't allow MD to override the assym.h generation rule.
...
(Nothing defines it except i386/bioscall/Makefile, but it is not part of
kernel build.)
2015-08-26 02:54:09 +00:00
christos
897e65dc18
CID 1320410: Don't call free on uninitalized pointer.
2015-08-26 02:01:55 +00:00
christos
e79de7d907
CID 1298707: Change confusing code that makes coverity think that Length
...
is uninitalized (we want length to be zero so instead of setting it to 0,
we check if it not zero and then we set it if it is not?!?!)
2015-08-26 01:58:55 +00:00
christos
dd6caf1efe
CID 1292510: Handle allocation failure.
2015-08-26 01:54:57 +00:00
pooka
f922511816
initialize ncpuonline
2015-08-25 14:53:25 +00:00
pooka
ff90585e5f
remove mksysctls(), now provided by init_sysctl_base
2015-08-25 14:52:59 +00:00
pooka
7cc60ed4d8
Move a bunch of sysctl nodes from init_sysctl (kitchen sink sysctl file)
...
to init_sysctl_base (only base kernel defs). Main motivation was to
fix sysconf(_SC_NPROCESSORS) for Rumprun. As reported by neeraj on irc,
it returned -1 before this fix, so we were doing imaginary computing.
2015-08-25 14:52:31 +00:00
pooka
f6f0cd6151
add ncpuonline
2015-08-25 14:47:39 +00:00
pooka
8bb469d326
add cpu_getmodel()
2015-08-25 14:47:26 +00:00
pooka
21ff215384
hw nodes do not go under the kern tree, so add new init routine for them
2015-08-25 14:32:34 +00:00
pooka
1dfc153377
Remember that dlsym() tends to fail on PowerPC during init (or at least
...
tended), so call rumphijack_dlsym() instead to be safe.
2015-08-25 13:50:19 +00:00