git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
refactor: add a async read/write variant to device ops, with allow async io to be...
[lunaix-os.git]
/
lunaix-os
/
arch
/
i386
/
includes
/
sys
/
x86_isa.h
1
#ifndef __LUNAIX_I386_ASM_H
2
#define __LUNAIX_I386_ASM_H
3
4
#define KCODE_SEG 0x08
5
#define KDATA_SEG 0x10
6
#define UCODE_SEG 0x1B
7
#define UDATA_SEG 0x23
8
#define TSS_SEG 0x28
9
10
#define tss_esp0_off 4
11
12
#ifndef __ASM__
13
#include <lunaix/types.h>
14
struct x86_tss
15
{
16
u32_t link;
17
u32_t esp0;
18
u16_t ss0;
19
u8_t __padding[94];
20
} __attribute__((packed));
21
22
void tss_update_esp(u32_t esp0);
23
#endif
24
25
#endif /* __LUNAIX_I386_ASM_H */