X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Finterrupt.h;h=adb7fa99b4a424e116914551c4edb0f3d2d30d20;hb=c80e647ab8f44161cfe75f6e39bdaf8624c32dd3;hp=fe26b3d521abd6e3c6be3b692347788d4cfa54ba;hpb=9cc8ba53f694dd7e2c2255e0caaa264bfa39a6fa;p=pintos-anon diff --git a/src/threads/interrupt.h b/src/threads/interrupt.h index fe26b3d..adb7fa9 100644 --- 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 #include @@ -36,7 +36,7 @@ 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. @@ -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); -#endif /* interrupt.h */ +void intr_dump_frame (const struct intr_frame *); +const char *intr_name (uint8_t vec); + +#endif /* threads/interrupt.h */