This repository has been archived on 2021-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
OS/pintos-env/pintos/tests/vm/pt-grow-bad.c

15 lines
304 B
C
Raw Normal View History

/* Read from an address 4,096 bytes below the stack pointer.
The process must be terminated with -1 exit code. */
#include <string.h>
#include "tests/arc4.h"
#include "tests/cksum.h"
#include "tests/lib.h"
#include "tests/main.h"
void
test_main (void)
{
asm volatile ("movl -4096(%esp), %eax");
}