X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Finterrupt.h;h=d54b7ef0893ff4caff7af5883d47b7c123fcd0d8;hb=5f1b986185717577aac1922544cb3a7b1a56b632;hp=5060b9d90bf7d2764b2e1d4e00e785212bca3f7e;hpb=6916b246f3be8c72d6e77fd98c4a1447fd2c1de7;p=pintos-anon diff --git a/src/threads/interrupt.h b/src/threads/interrupt.h index 5060b9d..d54b7ef 100644 --- a/src/threads/interrupt.h +++ b/src/threads/interrupt.h @@ -36,12 +36,12 @@ struct intr_frame uint32_t vec_no; /* Interrupt vector number. */ /* Sometimes pushed by the CPU, - otherwise by intrXX_stub for consistency. */ + otherwise for consistency pushed as 0 by intrXX_stub. */ uint32_t error_code; /* Error code. */ /* Pushed by the CPU. These are the interrupted task's saved registers. */ - void (*eip) (void); /* Current or next instruction. */ + void (*eip) (void); /* Next instruction to execute. */ uint16_t cs, :16; /* Code segment for eip. */ uint32_t eflags; /* Saved CPU flags. */ void *esp; /* Saved stack pointer. */