projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move TODO.
[pintos-anon]
/
src
/
threads
/
interrupt.h
diff --git
a/src/threads/interrupt.h
b/src/threads/interrupt.h
index fe26b3d521abd6e3c6be3b692347788d4cfa54ba..d54b7ef0893ff4caff7af5883d47b7c123fcd0d8 100644
(file)
--- a/
src/threads/interrupt.h
+++ b/
src/threads/interrupt.h
@@
-1,5
+1,5
@@
-#ifndef
HEADER
_INTERRUPT_H
-#define
HEADER_INTERRUPT_H 1
+#ifndef
THREADS
_INTERRUPT_H
+#define
THREADS_INTERRUPT_H
#include <stdbool.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
@@
-36,12
+36,12
@@
struct intr_frame
uint32_t vec_no; /* Interrupt vector number. */
/* Sometimes pushed by the CPU,
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. */
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. */
uint16_t cs, :16; /* Code segment for eip. */
uint32_t eflags; /* Saved CPU flags. */
void *esp; /* Saved stack pointer. */
@@
-56,4
+56,7
@@
void intr_register (uint8_t vec, int dpl, enum intr_level, intr_handler_func *,
bool intr_context (void);
void intr_yield_on_return (void);
bool intr_context (void);
void intr_yield_on_return (void);
-#endif /* interrupt.h */
+void intr_dump_frame (const struct intr_frame *);
+const char *intr_name (uint8_t vec);
+
+#endif /* threads/interrupt.h */