kern
annotate src/segm.h @ 71:c7bd6ec7b946
changed test_proc to modify memory after the fork in order to try out copy-on-write,
by pushing the result of getpid on the stack.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 13 Oct 2011 05:22:35 +0300 |
parents | 8ea6debe4265 |
children |
rev | line source |
---|---|
nuclear@7 | 1 #ifndef SEGM_H_ |
nuclear@7 | 2 #define SEGM_H_ |
nuclear@7 | 3 |
nuclear@7 | 4 #define SEGM_KCODE 1 |
nuclear@7 | 5 #define SEGM_KDATA 2 |
nuclear@29 | 6 #define SEGM_UCODE 3 |
nuclear@29 | 7 #define SEGM_UDATA 4 |
nuclear@29 | 8 #define SEGM_TASK 5 |
nuclear@7 | 9 |
nuclear@54 | 10 #ifndef ASM |
nuclear@7 | 11 void init_segm(void); |
nuclear@7 | 12 |
nuclear@7 | 13 uint16_t selector(int idx, int rpl); |
nuclear@7 | 14 |
nuclear@54 | 15 void set_tss(uint32_t addr); |
nuclear@54 | 16 #endif /* ASM */ |
nuclear@54 | 17 |
nuclear@7 | 18 |
nuclear@7 | 19 #endif /* SEGM_H_ */ |