From ec52e62d6d150dee972745e1e1cf52151c7766a7 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 13 Apr 2016 22:56:00 +0200 Subject: [PATCH] add hint to the processor that the code sequence is a spin-wait loop --- hermit/kernel/syscall.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hermit/kernel/syscall.c b/hermit/kernel/syscall.c index c9d289ddf..67fc79e7a 100644 --- a/hermit/kernel/syscall.c +++ b/hermit/kernel/syscall.c @@ -519,6 +519,9 @@ size_t sys_rcce_malloc(int session_id, int ue) kprintf("Map MPB of session %d at 0x%zx, using of slot %d, isle %d\n", session_id, vaddr, i, ue); + if (isle == ue) + memset((void*)vaddr, 0x0, RCCE_MPB_SIZE); + return vaddr; out: @@ -554,8 +557,9 @@ int sys_rcce_fini(int session_id) put_pages(rcce_mpb[i].mpb[isle], RCCE_MPB_SIZE / PAGE_SIZE); rcce_mpb[i].mpb[isle] = 0; - for(j=0; (j= MAX_ISLE)