Add user/div0.
This commit is contained in:
parent
a6598886f0
commit
c3992d8db5
4
Makefile
4
Makefile
@ -47,8 +47,8 @@ debug-nox: image.bin
|
||||
-ex "break _start" \
|
||||
-ex "continue"
|
||||
|
||||
fs.img: kernel.bin tools/mkfs user/false user/greet
|
||||
tools/mkfs $@ $< user/false user/greet
|
||||
fs.img: kernel.bin tools/mkfs user/false user/greet user/div0
|
||||
tools/mkfs $@ $< user/false user/greet user/div0
|
||||
|
||||
LDFLAGS=-m elf_i386
|
||||
|
||||
|
||||
5
user/div0.c
Normal file
5
user/div0.c
Normal file
@ -0,0 +1,5 @@
|
||||
int main(void) {
|
||||
volatile int x = 1, y = 0;
|
||||
x /= y;
|
||||
return 0;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user