Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cidre-public
Systemes d exploitation
xv6-riscv-tp
Commits
71393deb
Commit
71393deb
authored
Dec 11, 2020
by
Tronel Frederic
Browse files
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
kernel/syscall.c
View file @
71393deb
...
...
@@ -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
...
...
kernel/syscall.h
View file @
71393deb
...
...
@@ -32,6 +32,4 @@
#define SYS_acquire_mutex 25
#define SYS_release_mutex 26
#define SYS_read_kmem 30
#endif
kernel/sysproc.c
View file @
71393deb
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment