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: Optimize the context switch overhead
[lunaix-os.git]
/
lunaix-os
/
includes
/
arch
/
x86
/
tss.h
1
#ifndef __LUNAIX_TSS_H
2
#define __LUNAIX_TSS_H
3
4
#define tss_esp0_off 4
5
6
#ifndef __ASM__
7
#include <lunaix/types.h>
8
struct x86_tss
9
{
10
u32_t link;
11
u32_t esp0;
12
u16_t ss0;
13
u8_t __padding[94];
14
} __attribute__((packed));
15
16
void
17
tss_update_esp(u32_t esp0);
18
#endif
19
20
#endif /* __LUNAIX_TSS_H */