pooka
8a90d6851a
Initialize cpu_softcpu before creating softint threads. Fixes things
...
with rump kernel hypervisors which wrap the thread creation hypercall.
pointed out by Justin Cormack
2014-06-22 20:09:19 +00:00
maxv
1fc63be65d
Sync swapctl() with netbsd32. Return EINVAL when misc<0, and 0 when misc=0
...
or uvmexp.nswapdev=0.
2014-06-22 19:09:39 +00:00
maxv
54e39d64d0
Fix a NULL pointer dereference after a loooong discussion with dholland@,
...
hannken@, blymn@ and martin@.
This bug would panic the system when veriexec is set to the VERIEXEC_LOCKDOWN
mode (only settable from root).
2014-06-22 18:32:27 +00:00
maxv
742b1eee79
Put the KMEM_GUARD code under #if defined(KMEM_GUARD). No functional change.
2014-06-22 17:36:42 +00:00
maxv
f1911357ef
A KASSERT() is better.
2014-06-22 17:23:34 +00:00
hannken
4e4497b37e
Consistently pass a "struct piixpm_softc" to piixpm_intr.
...
Prevents a crash on hardware interrupts.
2014-06-22 09:48:20 +00:00
hannken
4f7c01f703
CID 1223346: No need to check bp against NULL. It is always valid here.
2014-06-22 09:47:40 +00:00
rtr
d54d7ab24a
* split PRU_CONTROL functionality out of xxx_userreq() switches and place
...
into separate xxx_ioctl() functions.
* place KASSERT(req != PRU_CONTROL) inside xxx_userreq() as it is now
inappropriate for req = PRU_CONTROL in xxx_userreq().
* replace calls to pr_generic() with req = PRU_CONTROL with pr_ioctl().
* remove & fixup references to PRU_CONTROL xxx_userreq() function comments.
* fix various comments references for xxx_userreq() that mentioned
PRU_CONTROL as xxx_userreq() no longer handles the request.
a further change will follow to fix parameter and naming inconsistencies
retained from original code.
Reviewed by rmind@
2014-06-22 08:10:18 +00:00
christos
a15da4b281
Avoid NULL dereference and fix sched param conversion (at least make it
...
do something). Pointed out by Maxime Villard
2014-06-21 23:12:10 +00:00
christos
ff4ba887a6
typo
2014-06-21 21:05:54 +00:00
christos
2cab074098
add NOTREACHED comment
2014-06-21 17:50:01 +00:00
christos
0ff5eeabb1
add notreached comment
2014-06-21 17:48:07 +00:00
christos
239f3a758e
CID 10006930: Prevent outfile overwrite resource leak.
2014-06-21 17:43:04 +00:00
christos
f43f371e43
register with pmf.
2014-06-21 17:34:30 +00:00
maxv
9cdb398e86
If SCARG(uap, what) = 0, copyin() will copy (size_t)-1 bytes, and it's not
...
a good idea; but not proven harmful.
With the help of njoly@
2014-06-21 10:23:07 +00:00
skrll
edf9a349dc
Typo in error message.
2014-06-21 09:11:04 +00:00
dholland
b30059e657
Log some actual information on various failures, so you can tell
...
what happened.
2014-06-21 04:33:53 +00:00
dholland
4a960bb603
Update a comment on a structure description. Noted by wiz a long time
...
ago.
does not seem to be worth bumping the date for.
2014-06-21 04:28:23 +00:00
dholland
7bf9cf009a
__attribute__((__packed__)) -> __packed
2014-06-21 03:44:06 +00:00
dholland
19fc27d7d5
__attribute__ ((__packed__)) -> __packed
2014-06-21 03:42:52 +00:00
tsutsui
857033a6e9
Appease gcc48 -Wunused-but-set-variable warnings.
2014-06-21 02:02:40 +00:00
tsutsui
224acff119
Properly use an unused-but-set-variable. Also replace a magic number.
2014-06-21 02:01:21 +00:00
manu
fe10ff49c1
Use returned size and not buffer max length when displaying attribute
...
From Thomas Schmitt <scdbackup@gmx.net>
2014-06-20 15:22:01 +00:00
manu
f56cc676bf
Do not record a trailing \0
...
From Thomas Schmitt <scdbackup@gmx.net>
2014-06-20 14:55:31 +00:00
ozaki-r
5efefa8603
Remove unnecessary sc_softintr
2014-06-20 14:22:48 +00:00
joerg
f800359619
intrcnt and _intrnames are unused.
2014-06-20 13:17:59 +00:00
joerg
823ebfdc82
Don't provide intrnames or intrcnt, GC intrcnt.h. IA64 has evcnt(9)
...
support hooked up, so no need for the legacy interface.
2014-06-20 12:41:34 +00:00
pooka
d6f42aa6f0
document RUMP_SYM_NORENAME
2014-06-20 12:36:31 +00:00
joerg
b7d8de5d33
evcnt is done.
2014-06-20 12:31:55 +00:00
pooka
795967533e
Some rump kernel components for interfacing with the environment need
...
to access both NetBSD kernel facilities and facilities provided by the
environment.
Where the environment's headers can be #included without namespace
conflict (which can be done - with care - for some Xen mini-os
headers), it is convenient to simply allow the rump kernel code to
call directly into the environment.
This also requires not mangling the symbol names.
So provide a variable RUMP_SYM_NORENAME which can be set by a component
namefile to a series of symbols or symbol prefixes (in makefile-quoted
awk regexp syntax). For example, in the rumpuser-xen xenbus driver:
RUMP_SYM_NORENAME=xenbus_|HYPERVISOR_|wake$$|block$$|schedule$$|force_evtchn
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
(proposed on rumpkernel-users; very minor modification by myself)
2014-06-20 11:57:56 +00:00
pooka
4799824b3f
Fix error return for rump_vfs_makeonedevnode()
...
from Ian Jackson <Ian.Jackson@eu.citrix.com>
2014-06-20 11:27:25 +00:00
phx
d08eccdb32
mc146818's sc_flag indicates the time is stored in binary format, not BCD.
...
So we should configure the chip's REGB for binary format as well.
This makes the BeBox RTC finally work reliable for me.
2014-06-20 09:47:15 +00:00
wiz
03f9b192f3
Update default pkgsrc font path references.
2014-06-20 08:08:58 +00:00
njoly
e75f143af6
Remove fagile test which ensured that first namelist element (was
...
X_NCHSTATS) had a known type. Make disk stats available again for
vmstat display.
2014-06-20 07:08:15 +00:00
sjg
5e8aec3baa
Return varNoError rather than var_Error for ::?= etc.
2014-06-20 06:13:45 +00:00
msaitoh
a563525659
fix -Werror=unused-but-set-variable compile error
2014-06-19 18:01:18 +00:00
ws
c05596e905
Enqueue the mbuf with the start of the packet,
...
not some intermediate one (hi, rmind!).
2014-06-19 16:54:40 +00:00
skrll
377f7201a6
Increase IMAGESIZE to fix build.
2014-06-19 16:34:21 +00:00
msaitoh
62b0bd5096
Fix compile error of -Werror=unused-but-set-variable.
2014-06-19 15:09:50 +00:00
christos
f2d4db7cf6
use fparseln() instead of fgetln() for consistency (this was the last fgetln()
...
using parser in net/.
cVS: ----------------------------------------------------------------------
2014-06-19 15:09:07 +00:00
christos
08d13064c0
use fparseln() instead of abusing fgetln(), so that the last line that
...
might not have a terminating newline is processed.
2014-06-19 15:08:18 +00:00
christos
52e916d949
Fix incorrect example (what happens when len == 0?)
2014-06-19 14:27:50 +00:00
hikaru
2943d72a5a
Use 64-bit DMA, if it is available.
...
This fixes null packet handling on guest which have memory over than 3GB.
2014-06-19 13:20:28 +00:00
msaitoh
a1b50cf1b2
Fix "error: variable 's' set but not used [-Werror=unused-but-set-variable]"
2014-06-19 13:20:13 +00:00
hikaru
f589d3a6c3
Make it be able to down I/F. This fixes panic when removing IFF_UP flag.
2014-06-19 13:16:29 +00:00
wiz
cdfd633d25
Add all functions to NAME section. End sentences with dots.
...
Bump date for previous.
2014-06-19 09:30:33 +00:00
msaitoh
5edf37f383
Fix "shadows a global declaration" compile error.
2014-06-19 05:31:15 +00:00
christos
20efb692ab
cast gotsig because it is long on some systems.
2014-06-18 20:12:15 +00:00
alnsn
9fc0501842
Revert last change. This is not the right place for rumpuser_sync_icache().
2014-06-18 19:50:32 +00:00
christos
cc52c7c3a4
Add stdlib.h for abort() (Jess Thrysoee)
2014-06-18 18:52:49 +00:00