diff --git a/labs/syscall.html b/labs/syscall.html index 67f800e..26cb573 100644 --- a/labs/syscall.html +++ b/labs/syscall.html @@ -231,13 +231,15 @@ alarmtest starting
To get started, the best strategy is to first pass test0, which will force you to handle the main challenge above. Here are some hints how to pass test0: + +
XXX alarm() needs to be defined somewhere.
int sigalarm(int ticks, void (*handler)());@@ -249,7 +251,7 @@ to be compiled as an xv6 user program.
Test0 doesn't tests whether the handler returns correctly to - interrupted instruction in test0. If you didn't get this right, it +
XXX it is surprising that test0() appears to work +perfectly, even though something is seriously wrong +with the way periodic() returns. we should recognize +that something odd is happening, maybe ask them to think +about it, and hint or say why they are not done even though +test0() works. + +
Test0 doesn't test whether the handler returns correctly to + the interrupted instruction. If you didn't get this right, it is likely that test1 will fail (the program crashes or the program goes into an infinite loop).