projects
/
bootcensus
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
interrupts, timer, keyboard, segments, lots of kernel code
[bootcensus]
/
src
/
segm.h
1
#ifndef SEGM_H_
2
#define SEGM_H_
3
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
9
10
#ifndef ASM
11
void init_segm(void);
12
13
uint16_t selector(int idx, int rpl);
14
15
void set_tss(uint32_t addr);
16
#endif /* ASM */
17
18
19
#endif /* SEGM_H_ */