Exclude areas not assigned to Mckernel from direct map of all phys. memory
It's enabled by adding -s to mcreboot.sh. Cherry-pick of the following commit: commit b5c13ce51a5a4926c2cf11c817cd0d369ac4402d Author: Katsuya Horigome <katsuya.horigome.rj@ps.hitachi-solutions.com> Date: Mon Nov 20 09:40:41 2017 +0900 Include measures to prevent memory destruction on Linux side (This is rebase commit for merging to development+hfi)
This commit is contained in:
committed by
Masamichi Takagi
parent
221ce34da2
commit
38c3b2358a
7
test/mem_dest_prev/mcexec_test_proc/Makefile
Normal file
7
test/mem_dest_prev/mcexec_test_proc/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
OBJS = memtest_destroy
|
||||
|
||||
all:$(OBJS)
|
||||
|
||||
clean:
|
||||
rm $(OBJS)
|
||||
|
||||
13
test/mem_dest_prev/mcexec_test_proc/memtest_destroy.c
Normal file
13
test/mem_dest_prev/mcexec_test_proc/memtest_destroy.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
main() {
|
||||
int rst = 0;
|
||||
|
||||
rst = syscall(950);
|
||||
printf("mem_destroy result:%d\n",rst);
|
||||
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user