summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2019-08-20 13:04:12 -0400
committerFrans Kaashoek <[email protected]>2019-08-20 13:04:12 -0400
commitc612d452fdb03080c77517f6c1b32b8d11c6c40a (patch)
tree037c5aa820a29f5b25be689756dd3a0f7f1c4a50 /user
parentb564fca24652dad80946b1e690db37dd87c66dbe (diff)
downloadxv6-labs-c612d452fdb03080c77517f6c1b32b8d11c6c40a.tar.gz
xv6-labs-c612d452fdb03080c77517f6c1b32b8d11c6c40a.tar.bz2
xv6-labs-c612d452fdb03080c77517f6c1b32b8d11c6c40a.zip
validateint doesn't test something interesting on RISC-V; delete it.
Diffstat (limited to 'user')
-rw-r--r--user/usertests.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/user/usertests.c b/user/usertests.c
index 13e7cce..285f161 100644
--- a/user/usertests.c
+++ b/user/usertests.c
@@ -1773,39 +1773,15 @@ sbrktest(void)
}
void
-validateint(int *p)
-{
- /* XXX int res;
- asm("mov %%esp, %%ebx\n\t"
- "mov %3, %%esp\n\t"
- "int %2\n\t"
- "mov %%ebx, %%esp" :
- "=a" (res) :
- "a" (SYS_sleep), "n" (T_SYSCALL), "c" (p) :
- "ebx");
- */
-}
-
-void
validatetest(void)
{
- int hi, pid;
+ int hi;
uint64 p;
printf(stdout, "validate test\n");
hi = 1100*1024;
for(p = 0; p <= (uint)hi; p += PGSIZE){
- if((pid = fork()) == 0){
- // try to crash the kernel by passing in a badly placed integer
- validateint((int*)p);
- exit();
- }
- sleep(0);
- sleep(0);
- kill(pid);
- wait();
-
// try to crash the kernel by passing in a bad string pointer
if(link("nosuchfile", (char*)p) != -1){
printf(stdout, "link should not succeed\n");