jos/user/softint.c

11 lines
158 B
C
Raw Normal View History

2018-09-25 09:22:51 -07:00
// buggy program - causes an illegal software interrupt
#include <inc/lib.h>
void
umain(int argc, char **argv)
{
asm volatile("int $14"); // page fault
}