Commit 71393deb authored by Tronel Frederic's avatar Tronel Frederic

Revert "Ajout d'un nouvel appel système côté noyau pour lire dans la mémoire kernel directement."

This reverts commit 09b96474.
parent 09b96474
......@@ -109,7 +109,6 @@ extern uint64 sys_nice(void);
extern uint64 sys_create_mutex(void);
extern uint64 sys_acquire_mutex(void);
extern uint64 sys_release_mutex(void);
extern uint64 sys_read_kmem(void);
static uint64 (*syscalls[])(void) = {
[SYS_fork] sys_fork,
......@@ -138,7 +137,6 @@ static uint64 (*syscalls[])(void) = {
[SYS_create_mutex] sys_create_mutex,
[SYS_acquire_mutex] sys_acquire_mutex,
[SYS_release_mutex] sys_release_mutex,
[SYS_read_kmem] sys_read_kmem,
};
void
......
......@@ -32,6 +32,4 @@
#define SYS_acquire_mutex 25
#define SYS_release_mutex 26
#define SYS_read_kmem 30
#endif
......@@ -100,14 +100,3 @@ sys_uptime(void)
release(&tickslock);
return xticks;
}
uint64
sys_read_kmem(void)
{
uint64 addr;
argaddr(0, &addr);
printf("Call read kernel mem with addr: %p\n", addr);
return *(int *)addr;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment