Skip to content
Snippets Groups Projects
Commit 8352b998 authored by kaashoek's avatar kaashoek
Browse files

oops

parent 21a88fd4
No related branches found
No related tags found
No related merge requests found
asm.h 0 → 100644
#define SEG_NULL \
.word 0, 0; \
.byte 0, 0, 0, 0
#define SEG(type,base,lim) \
.word (((lim) >> 12) & 0xffff), ((base) & 0xffff); \
.byte (((base) >> 16) & 0xff), (0x90 | (type)), \
(0xC0 | (((lim) >> 28) & 0xf)), (((base) >> 24) & 0xff)
#define STA_X 0x8 // Executable segment
#define STA_E 0x4 // Expand down (non-executable segments)
#define STA_C 0x4 // Conforming code segment (executable only)
#define STA_W 0x2 // Writeable (non-executable segments)
#define STA_R 0x2 // Readable (executable segments)
#define STA_A 0x1 // Accessed
......@@ -34,6 +34,8 @@ main()
tinit(); // traps and interrupts
pic_init();
while (1);
// create fake process zero
p = &proc[0];
curproc = p;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment