jmcneill
4286b6d7f6
add procfs support
2011-08-24 10:59:10 +00:00
reinoud
6974a113d3
kmem_data_start is no longer needed
2011-08-24 10:57:48 +00:00
reinoud
5477dab842
Implement thunk_malloc() and think_free()
2011-08-24 10:56:44 +00:00
christos
14e36cd2fb
remove unneeded casts
2011-08-24 07:51:31 +00:00
mrg
012f831146
normalise #if defined(MULTIPROCESSOR) usage.
2011-08-24 02:51:13 +00:00
wiz
098681c432
Bump date for previous.
2011-08-23 22:14:51 +00:00
dyoung
64311e1f9d
Introduce a couple of new constants, VMEM_ADDR_MIN (the least possible
...
address in a vmem(9) arena, 0) and VMEM_ADDR_MAX (the maximum possible
address, currently 0xFFFFFFFF). Modify several boundary conditions so
that a vmem(9) arena can allocate ranges including VMEM_ADDR_MAX.
Update documentation and tests.
These changes pass the tests in sys/kern/subr_vmem.c. To compile the
and run the test program, run "cd sys/kern/ && gcc -DVMEM_SANITY -o
subr_vmem ./subr_vmem.c && ./subr_vmem".
2011-08-23 22:00:57 +00:00
jmcneill
84f3db989a
call hardclock from a softint instead of signal handler
2011-08-23 21:56:02 +00:00
jmcneill
23f5395b58
add a wrapper for signal(3)
2011-08-23 21:55:21 +00:00
christos
76987894af
misc knf cleanup.
2011-08-23 20:27:22 +00:00
christos
91cc0e5629
more fixes from martin
2011-08-23 19:57:24 +00:00
christos
3e74546ba5
remove stray brace, minor knf
2011-08-23 19:17:07 +00:00
reinoud
f54c6f5d02
Give malloc(3) a barrier to allocate OVER... i.e. let the space at ease!
...
Note that it could use an extra barrier too.
2011-08-23 18:37:51 +00:00
reinoud
35db8893df
Use write(1,..) and not putchar()
2011-08-23 18:36:08 +00:00
jmcneill
f7257e7810
maxmimum -> maximum
2011-08-23 17:28:34 +00:00
jmcneill
95ef55ad75
struct stat also has time_t in it, so we can't use that in the thunk api either
2011-08-23 17:12:32 +00:00
christos
1beaa2ceec
PR/45285: Martin Matuska: makefs does not properly convert ISO level 1 and 2
...
filenames (buffer overflow)
makefs does not properly verify the maximum filename length in the
special "." case for both ISO level 1 and ISO level 2 filename
conversion. This creates broken images or causes a buffer overflow
(ISO level 2).
ISO level 1:
If a filename contains only dots or up to 8 characters followed by
dots the 8+3 limit check doesn't work.
ISO level 2:
If a filename contains a dot in the first 30 characters and a dot
on the 30th character, the length limit check doesn't work and the
buffer is overflowed.
$ mkdir level1
$ touch level1/12345............
$ makefs -t cd9660 -o isolevel=1 test.iso level1
$ mkdir level2
$ touch level2/1234567890.2345678901234567.....34567890123456789012345
$ makefs -t cd9660 -o isolevel=2 test.iso level2
2011-08-23 17:09:11 +00:00
jmcneill
52b361a049
more time_t fixes
2011-08-23 17:00:36 +00:00
christos
2b857b66d9
defopt UMASS_DEBUG
2011-08-23 16:16:43 +00:00
jmcneill
0a7c520287
unlink pmap backing file immediately after opening it, so we don't leave
...
a bunch of 128MB turds sitting around in /tmp
2011-08-23 16:16:26 +00:00
jmcneill
16a0338114
more host vs. userkernel time_t fixes
2011-08-23 16:09:27 +00:00
jmcneill
f95d0b07fa
don't use kmem from softint context
2011-08-23 15:56:12 +00:00
reinoud
6613ea22ef
Implement pmap_create()
2011-08-23 15:35:53 +00:00
reinoud
6ef1d57a0c
Fix zero page cleaning. The supplied `pa' is a physical address and no page
...
number so don't multiply with PAGE_SIZE
2011-08-23 15:12:31 +00:00
jmcneill
36013536d8
host and userkernel timespec might differ in size (because of time_t) so
...
instead of thunk_clock_getres() filling in a timespec, use instead
thunk_clock_getres_monotonic() that returns the resolution as a long
2011-08-23 14:37:50 +00:00
reinoud
e7b3bf46ad
Clean up chatty pmap.c and fix important bug that claimed too little kmem
...
space. Thanks go to jmcneill for finding it!
2011-08-23 14:23:08 +00:00
reinoud
a0ace6b461
OOps... there is no aprintf_debug()
2011-08-23 13:37:32 +00:00
reinoud
98f35557ac
Braindead implementation of pmap_zero_page()
2011-08-23 13:35:57 +00:00
christos
28ab15e044
don't use lwp_setprivate in fork, but copy the private lwp member directly
...
because userland might have messed with the TLS register without letting
the kernel know. This fixes fork() on amd64. Thanks chuq!
2011-08-23 13:01:25 +00:00
pgoyette
81d8330c12
Remove left-over debug line
2011-08-23 12:55:50 +00:00
pgoyette
99deda018d
Module build glue for if_rum and if_axe
2011-08-23 12:54:05 +00:00
pgoyette
75c5b19872
Update for modular build
2011-08-23 12:53:29 +00:00
reinoud
f19d57b776
The pv_tables and the kernel pmap structure are not managed by UVM and thus
...
shouldn't be returned in pmap_virtual_space() for UVM.
2011-08-23 12:46:58 +00:00
jmcneill
e5faa0dc10
get rid of uvmhist stuff
2011-08-23 12:36:20 +00:00
pgoyette
3016e04310
In preparation for building this as a module, clean-up some gcc
...
-Wsign-compare issues so it will build with WARNS=4
2011-08-23 12:33:50 +00:00
jmcneill
616594aca0
pull in GENERIC.local if it exists
2011-08-23 12:27:01 +00:00
reinoud
1fba2c8574
Initial implementation of pmap_remove()
...
Also cleaned up some debug output to be aprint_debug()'d.
2011-08-23 12:06:14 +00:00
reinoud
9ae5eb8d83
Implement pv_alloc() and pv_free() and add various printf's to see what
...
functions are called that might have side effects due to not being
implemented!
2011-08-23 11:36:11 +00:00
christos
0404783632
document another non-literal format string
2011-08-23 10:47:06 +00:00
reinoud
9b209ce7da
Cleanup pv_get() before enabling multiple-mappings
2011-08-23 10:41:47 +00:00
christos
b182f6a794
document non-literal formats
2011-08-23 10:26:07 +00:00
christos
69a4e2ee5b
PR/45269: Andreas Gustafsson: Instead of falling off the edge when eating trailing newlines
...
if the block has moved, arrange so that trailing newlines are never placed in the string
in the first place, by accumulating them and adding them only after we've encountered a
non-newline character. This allows also for more efficient appending since we know how much
we need beforehand. From FreeBSD.
2011-08-23 10:04:39 +00:00
christos
d452d7e758
- add pid to the trace file so that we don't keep overwriting ourselves
...
- use va_copy to print the trace arguments so that we don't deplete it for the real printf
2011-08-23 10:01:32 +00:00
christos
819193d44d
add more gcc printf format attributes
2011-08-23 09:59:20 +00:00
oki
a69c375f9d
make compile with options RT3050.
2011-08-23 08:10:08 +00:00
hannken
fc2e6c60c4
When consuming only part of a path in rump_vop_lookup():
...
- Make sure to consume complete path components.
- Consume trailing slashes too.
- Do not clear REQUIREDIR.
Test rump/modautoload/t_modautoload now passes.
2011-08-23 07:40:32 +00:00
hannken
f937bd97b7
Stop abusing relookup() to prepare the creation of new nodes
...
in the upper layer.
Replace union_relookup() with union_do_lookup() that prepares
a component, calls VOP_LOOKUP() and does the EEXIST test.
2011-08-23 07:39:37 +00:00
christos
875018bf8a
add -Wformat=2
2011-08-23 05:22:25 +00:00
oki
32a22fa000
make compile without VMSWAP. no functional change.
2011-08-23 03:00:35 +00:00
jmcneill
dc155b3bd5
pmap_enter: fix pmap_do_enter parameters
2011-08-23 00:52:33 +00:00