From 3bee885ed7b5d39341a24a7d64959f54ddf45bab Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Fri, 2 Aug 2019 14:51:04 -0400 Subject: [PATCH] some XXX questions --- labs/syscall.html | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) 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.

test1(): resume interrupted code

-

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).