projects
/
3sys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
selectors, descriptors, more interrupt init
[3sys]
/
sys1
/
kern
/
src
/
desc.h
diff --git
a/sys1/kern/src/desc.h
b/sys1/kern/src/desc.h
index
9d9f700
..
e5e723b
100644
(file)
--- a/
sys1/kern/src/desc.h
+++ b/
sys1/kern/src/desc.h
@@
-8,7
+8,9
@@
struct desc {
};
enum { SEG_NULL, SEG_CODE, SEG_DATA, SEG_TSS };
};
enum { SEG_NULL, SEG_CODE, SEG_DATA, SEG_TSS };
+enum { GATE_INTR, GATE_TRAP };
void desc_seg(struct desc *desc, int type, uint32_t base, uint32_t limit, int dpl);
void desc_seg(struct desc *desc, int type, uint32_t base, uint32_t limit, int dpl);
+void desc_intr(struct desc *desc, int type, uint16_t sel, uint32_t offs, int dpl);
#endif /* DESC_H_ */
#endif /* DESC_H_ */