Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xv6-riscv-tp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cidre-public
Systemes d exploitation
xv6-riscv-tp
Commits
71393deb
Commit
71393deb
authored
4 years ago
by
Tronel Frederic
Browse files
Options
Downloads
Patches
Plain Diff
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
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
kernel/syscall.c
+0
-2
0 additions, 2 deletions
kernel/syscall.c
kernel/syscall.h
+0
-2
0 additions, 2 deletions
kernel/syscall.h
kernel/sysproc.c
+0
-11
0 additions, 11 deletions
kernel/sysproc.c
with
0 additions
and
15 deletions
kernel/syscall.c
+
0
−
2
View file @
71393deb
...
@@ -109,7 +109,6 @@ extern uint64 sys_nice(void);
...
@@ -109,7 +109,6 @@ extern uint64 sys_nice(void);
extern
uint64
sys_create_mutex
(
void
);
extern
uint64
sys_create_mutex
(
void
);
extern
uint64
sys_acquire_mutex
(
void
);
extern
uint64
sys_acquire_mutex
(
void
);
extern
uint64
sys_release_mutex
(
void
);
extern
uint64
sys_release_mutex
(
void
);
extern
uint64
sys_read_kmem
(
void
);
static
uint64
(
*
syscalls
[])(
void
)
=
{
static
uint64
(
*
syscalls
[])(
void
)
=
{
[
SYS_fork
]
sys_fork
,
[
SYS_fork
]
sys_fork
,
...
@@ -138,7 +137,6 @@ static uint64 (*syscalls[])(void) = {
...
@@ -138,7 +137,6 @@ static uint64 (*syscalls[])(void) = {
[
SYS_create_mutex
]
sys_create_mutex
,
[
SYS_create_mutex
]
sys_create_mutex
,
[
SYS_acquire_mutex
]
sys_acquire_mutex
,
[
SYS_acquire_mutex
]
sys_acquire_mutex
,
[
SYS_release_mutex
]
sys_release_mutex
,
[
SYS_release_mutex
]
sys_release_mutex
,
[
SYS_read_kmem
]
sys_read_kmem
,
};
};
void
void
...
...
This diff is collapsed.
Click to expand it.
kernel/syscall.h
+
0
−
2
View file @
71393deb
...
@@ -32,6 +32,4 @@
...
@@ -32,6 +32,4 @@
#define SYS_acquire_mutex 25
#define SYS_acquire_mutex 25
#define SYS_release_mutex 26
#define SYS_release_mutex 26
#define SYS_read_kmem 30
#endif
#endif
This diff is collapsed.
Click to expand it.
kernel/sysproc.c
+
0
−
11
View file @
71393deb
...
@@ -100,14 +100,3 @@ sys_uptime(void)
...
@@ -100,14 +100,3 @@ sys_uptime(void)
release
(
&
tickslock
);
release
(
&
tickslock
);
return
xticks
;
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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment