[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH 1/3] kernel2: Temporaeres Mapping fuer RPC gefixt



! kernel2: Der aktuelle Speicherkontext muss nicht zwingend der
  Speicherkontext des aktuellen Prozesses sein

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/kernel2/src/syscalls/rpc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/kernel2/src/syscalls/rpc.c b/src/kernel2/src/syscalls/rpc.c
index 515ad80..a8ec30b 100644
--- a/src/kernel2/src/syscalls/rpc.c
+++ b/src/kernel2/src/syscalls/rpc.c
@@ -245,7 +245,7 @@ static int do_fastrpc(pid_t callee_pid, size_t metadata_size, void* metadata,
     callee_isf->esp -= rounded_data_size;
 
     void* first_stack_page = mmc_automap_user(
-        &current_process->context,
+        &mmc_current_context(),
         &callee->process->context,
         (vaddr_t) PAGE_ALIGN_ROUND_DOWN(callee_isf->esp),
         NUM_PAGES(rounded_data_size + ((uintptr_t) callee_isf->esp % PAGE_SIZE)),
-- 
1.6.0.2