-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export tss reference from assembly to c code
- Loading branch information
1 parent
6ff0623
commit 8261691
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* tss.h | ||
* | ||
* Created on: 18/12/2021 | ||
* Author: Paulo Almeida | ||
*/ | ||
|
||
#ifndef INCLUDE_KERNEL_ARCH_TSS_H_ | ||
#define INCLUDE_KERNEL_ARCH_TSS_H_ | ||
|
||
#include "kernel/compiler/freestanding.h" | ||
#include "kernel/compiler/macro.h" | ||
|
||
typedef struct { | ||
uint32_t res0; | ||
uint64_t rsp0; | ||
uint64_t rsp1; | ||
uint64_t rsp2; | ||
uint64_t res1; | ||
uint64_t ist1; | ||
uint64_t ist2; | ||
uint64_t ist3; | ||
uint64_t ist4; | ||
uint64_t ist5; | ||
uint64_t ist6; | ||
uint64_t ist7; | ||
uint64_t res2; | ||
uint16_t res3; | ||
uint16_t iopb; | ||
} __packed tss_t; | ||
|
||
#endif /* INCLUDE_KERNEL_ARCH_TSS_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters