diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-06 22:41:42 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-06 22:41:42 +0100 |
commit | bfbc5ab1970bbf9307e03a42e69b0d55eb92f2ef (patch) | |
tree | 8f71f8efd7cb541cbc26c0c4914b3de999d59c3d /sys/src/9/kw/syscall.c | |
parent | f029ea1694b4f0f8ec0cc848b936b0122bd17347 (diff) |
pc64: fix kmap()
kmapindex has to be per process, not per mach, as the process
can be switched to another processor while the mapping is
established.
to bootstrap the first process, we have to temporarily set up
so the kmap MMU's can be attached to the process. previously
we assumed that the first two pages for the initial process
where below 2GB and could be accessed with KADDR() directly.
with 16GB machine, all the 2GB above KZERO are dedicated to
the kernel so the user pages returned by newpage() need to
be mapped.
Diffstat (limited to 'sys/src/9/kw/syscall.c')
0 files changed, 0 insertions, 0 deletions