kern

view src/segm.h @ 59:ef9cc2e90277

added a comment describing the push of just_forked address to the stack frame of the newly-forked process.
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 17 Aug 2011 05:33:03 +0300
parents 8ea6debe4265
children
line source
1 #ifndef SEGM_H_
2 #define SEGM_H_
4 #define SEGM_KCODE 1
5 #define SEGM_KDATA 2
6 #define SEGM_UCODE 3
7 #define SEGM_UDATA 4
8 #define SEGM_TASK 5
10 #ifndef ASM
11 void init_segm(void);
13 uint16_t selector(int idx, int rpl);
15 void set_tss(uint32_t addr);
16 #endif /* ASM */
19 #endif /* SEGM_H_ */