git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: Optimize the context switch overhead
[lunaix-os.git]
/
lunaix-os
/
includes
/
arch
/
x86
/
tss.h
diff --git
a/lunaix-os/includes/arch/x86/tss.h
b/lunaix-os/includes/arch/x86/tss.h
index 6643344f9955019b1b71d1bbf2ea4b8d970954bd..931ff26a02738854b79dc90c15723dad18cb46e0 100644
(file)
--- a/
lunaix-os/includes/arch/x86/tss.h
+++ b/
lunaix-os/includes/arch/x86/tss.h
@@
-1,16
+1,20
@@
#ifndef __LUNAIX_TSS_H
#define __LUNAIX_TSS_H
#ifndef __LUNAIX_TSS_H
#define __LUNAIX_TSS_H
-#include <lunaix/types.h>
+#define tss_esp0_off 4
+
+#ifndef __ASM__
+#include <lunaix/types.h>
struct x86_tss
{
u32_t link;
u32_t esp0;
struct x86_tss
{
u32_t link;
u32_t esp0;
- u
int
16_t ss0;
- u
int
8_t __padding[94];
+ u16_t ss0;
+ u8_t __padding[94];
} __attribute__((packed));
void
tss_update_esp(u32_t esp0);
} __attribute__((packed));
void
tss_update_esp(u32_t esp0);
+#endif
#endif /* __LUNAIX_TSS_H */
#endif /* __LUNAIX_TSS_H */