195199 Commits

Author SHA1 Message Date
pooka
0f9fe55ba4 Umm, delete recursive mutex interface instead of renaming it. 2010-12-01 15:01:52 +00:00
pooka
5e1b7bf36d Track lwp as the rumpuser mutex owner instead of pthread_t (this
is done in rumpuser for simplicity, since on the kernel side things
we assume we have only one pointer of space).  As a side-effect,
we can no longer know if the current thread is holding on to a
mutex locked without curlwp context (basically all mutexes inited
outside of mutex_init()).  The only thing that called rumpuser_mutex_held()
for a non-kmutex was the giant lock.  So, instead implement recursive
locking for the giant lock in the rump kernel and get rid of the
now-unused recursive pthread mutex in the hypercall interface.
2010-12-01 14:59:37 +00:00
jruoho
677827a9a5 Reference stdbool(3), stdint(3), and inttypes(3). Use .Vt. 2010-12-01 13:27:15 +00:00
dholland
430077746e typo 2010-12-01 11:24:38 +00:00
dholland
2d8f9e4c6a Minor grammar patrol.
XXX: if this is going to mention the c89 TC's, it should really
XXX: mention the c99 TC's too.
2010-12-01 11:23:39 +00:00
pooka
f73729b6b4 Make uvm_pagealloc_tele() fail if the request can't be immediately
satisfied.  This allows the caller to unlock the object and the
pagedaemon to avoid deadlock even if ~all memory is consumed by
one vm object.  This in turn makes is possible to copy a large file
into a rump kernel with a 10MB memory limit (where large >> 10MB).
A little more tuning will be required to avoid the pagedaemon
hitting the sleep-and-retry path, though.

+ fix some outdated unrelated comments
2010-12-01 11:19:18 +00:00
he
301198ac5d Follow up the changes done to wivar.h -- the consequence here is that
instead of a _disable and _enable routine, we have a single _enable which
takes a flag, and has a slightly different function signature.
Macppc kernels should build again.
2010-12-01 09:52:28 +00:00
mrg
eebfdc254d dsable SSE2 support on amd64 for now. GCC generates code that causes
alignment faults.  the code is:

0x00007f7ffd40ccd7 <_pixman_implementation_create_sse2+0>:      push   %rbp
0x00007f7ffd40ccd8 <_pixman_implementation_create_sse2+1>:      mov    %rsp,%rbp
0x00007f7ffd40ccdb <_pixman_implementation_create_sse2+4>:      sub    $0x10,%rsp
...
0x00007f7ffd40cdab <_pixman_implementation_create_sse2+212>:    mov    $0xffffffffffffffff,%rdx
0x00007f7ffd40cdb2 <_pixman_implementation_create_sse2+219>:    mov    %rdx,0xfffffffffffffff0(%rbp)
0x00007f7ffd40cdb6 <_pixman_implementation_create_sse2+223>:    mov    %rdx,0xfffffffffffffff8(%rbp)
0x00007f7ffd40cdba <_pixman_implementation_create_sse2+227>:    movdqa 0xfffffffffffffff0(%rbp),%xmm0

upon entry we have stack aligned to 16 bytes.  the first instruction
subtracts 8, we copy this not-16-byte aligned value into %rbp, and
then decrement the stack by 16 bytes.

then we store a big -1 into 16 bytes on the stack, and then load it
into %xmm0.. except we load it from an unaligned pointer and GP.
2010-12-01 08:59:12 +00:00
pooka
fe64a82d7b comment why vax is left out of all the fun 2010-12-01 07:12:03 +00:00
pooka
024c6ce070 adjust previous a bit to attempt to deal with MKMONKEY 2010-12-01 07:03:21 +00:00
skrll
663ac59a5a Define PCI_MAGIC_IO_RANGE, so that Xorg drivers can mmap PCI IO space. 2010-12-01 06:47:16 +00:00
jruoho
072bfa1368 OWITE -> OWTTE, as in the original patch. 2010-12-01 05:18:09 +00:00
mef
de61feac70 Add Makoto Fujiwara mef@, thanks 2010-12-01 01:57:09 +00:00
riz
b16d0da05a Add sets/mtree goop for new test program and accompanying dirs. 2010-11-30 23:18:25 +00:00
riz
3c3ed948f1 Add some basic tests of resize_ffs(8). The 'grow' test does nothing
more than create an empty file system, grow it, and makes sure fsck
finds the result clean.  The 'shrink' test does likewise for shrinking,
but is an expected failure at the moment due to PR bin/44177.
2010-11-30 23:17:27 +00:00
pooka
03f765ec9e lint care 2010-11-30 22:32:01 +00:00
pooka
cc95cda0d4 lintsquelch 2010-11-30 22:30:43 +00:00
pooka
cece9ab74b cleanup server after use
(XXX: need better way to reboot it)
2010-11-30 22:15:02 +00:00
pooka
30ef7f96b5 build system gobbeldygook for tests 2010-11-30 22:14:02 +00:00
pooka
c2681d795d Add a simple and stress test cases for the rump remote syscall code.
Fun fact: since the server daemonizes into its own process group,
it's not in atf's pgrp.  Use rump_sys_reboot() in atf cleanup to
kill the server after the test.
2010-11-30 22:09:15 +00:00
wiz
5657c17871 Add some consistency dots though they make not much typographic sense; however,
just as much as in the other places in the enumeration.
Use Pa for a path.
2010-11-30 22:00:01 +00:00
jruoho
83f1baf744 Update. 2010-11-30 21:22:38 +00:00
jruoho
b4ba5c1508 Xref glob(7). 2010-11-30 21:03:07 +00:00
jruoho
f5ea53518f Fix botched CVS identifier. 2010-11-30 20:59:59 +00:00
jruoho
d34231af78 Add glob(7).
From OpenBSD. Written by Todd C. Miller.
2010-11-30 20:59:10 +00:00
jruoho
e4adbfb091 Add c(7).
Pillaged from FreeBSD. Written by Gabor Kovesdan.
2010-11-30 20:50:28 +00:00
pooka
ff46270ebc Hands off of stuff we need to keep hands off of. 2010-11-30 20:33:43 +00:00
jruoho
1b259f8e7b Add orders(7) as a miscellaneous manual page. 2010-11-30 20:19:30 +00:00
pooka
82747810db Add missing .El
Maybe next we can have typoed comments break builds?
2010-11-30 19:50:25 +00:00
jruoho
d8fe334089 Add numerous entries from Roland Kammerer.
Couple of good ones, FTFY, AMOL, AINEC, GLHF, IAWTC, OOI, OWTTE, ...
2010-11-30 19:07:15 +00:00
pooka
4573b11817 don't include librump twice 2010-11-30 19:03:44 +00:00
jruoho
c2668640ae Fix boolean brain freeze. 2010-11-30 18:44:07 +00:00
joerg
236a44094d Test alignment of constructor / destructor calls as well as the stack
of new threads. Currently implement for i386 and AMD64.
2010-11-30 18:38:53 +00:00
joerg
cb0b8d7cc6 Fix stack alignment for non-constructor/destructor calls.
AMD64 stack is 16 Byte aligned at the start of the function,
so always push rbx.
2010-11-30 18:37:59 +00:00
pooka
074a7d7688 simplify 2010-11-30 18:20:41 +00:00
pooka
cc18af6c52 one more test 2010-11-30 18:19:47 +00:00
pooka
fb6b034dfb check etfs key rules 2010-11-30 18:14:38 +00:00
pooka
0161ae951b ahem, use public interface names in the doc 2010-11-30 18:08:46 +00:00
pooka
fe96301432 document rump_etfs 2010-11-30 17:32:28 +00:00
pooka
205a3e1371 regen: checksavecn is gone 2010-11-30 16:27:30 +00:00
pooka
74861a965c test makecn/freecn 2010-11-30 16:16:33 +00:00
hauke
97e8ba784e Fix an embarassing tyop. gcc should run aspell over the comments... 2010-11-30 16:05:55 +00:00
pooka
9670fcaf80 Remove dead code from previous revision. 2010-11-30 15:42:11 +00:00
pooka
2c4a6d5bab remove unnecessary interface 2010-11-30 15:41:35 +00:00
pooka
88c803e16f fix broken rototill 2010-11-30 15:39:27 +00:00
bsh
dcf9e50cee don't clear TS_BUSY in ucomclose().
This fixes kernel crash in ucomstart() with "echo Hello > /dev/ttyU0".
2010-11-30 15:26:22 +00:00
tnozaki
96bcb898d4 variable must to be nul terminated before "CODESET=foo".
ISO2022 module doesn't understand this and may fail setlocale(3).
2010-11-30 15:25:05 +00:00
christos
632ebb6b6e fix typo caused mdnstries not to work. 2010-11-30 15:00:10 +00:00
njoly
aab4946261 Adjust obsolete_libs to handle both the libraries (unchanged) and the
corresponding .debug files if exists.
2010-11-30 14:35:38 +00:00
pooka
fe0f81073d comment tyops 2010-11-30 14:31:14 +00:00