From b548df152b5a53ea8cfcb2d94fbdee07884d8050 Mon Sep 17 00:00:00 2001 From: rtm Date: Tue, 11 Jul 2006 17:39:45 +0000 Subject: pre-empt both user and kernel, in clock interrupt usertest.c tests pre-emption kill() --- main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index b711640..ce29af3 100644 --- a/main.c +++ b/main.c @@ -66,11 +66,12 @@ main() ide_init(); // become interruptable - write_eflags(read_eflags() | FL_IF); + sti(); p = newproc(); - // load_icode(p, _binary_usertests_start, (unsigned) _binary_usertests_size); - load_icode(p, _binary_userfs_start, (unsigned) _binary_userfs_size); + + load_icode(p, _binary_usertests_start, (unsigned) _binary_usertests_size); + //load_icode(p, _binary_userfs_start, (unsigned) _binary_userfs_size); cprintf("loaded userfs\n"); scheduler(); -- cgit v1.2.3