makefile: introduce a format command to run clang-format all over the kernel source.
This commit is contained in:
parent
c4e98f5ef2
commit
a379d66784
47 changed files with 5092 additions and 4603 deletions
11
kernel/src/sys/arch/x86_64/gdt.h
Executable file → Normal file
11
kernel/src/sys/arch/x86_64/gdt.h
Executable file → Normal file
|
@ -5,10 +5,10 @@
|
|||
typedef struct {
|
||||
uint16_t length;
|
||||
uint16_t base;
|
||||
uint8_t base1;
|
||||
uint8_t flags;
|
||||
uint8_t flags1;
|
||||
uint8_t base2;
|
||||
uint8_t base1;
|
||||
uint8_t flags;
|
||||
uint8_t flags1;
|
||||
uint8_t base2;
|
||||
uint32_t base3;
|
||||
uint32_t resv;
|
||||
} __attribute__((packed)) tss_entry;
|
||||
|
@ -23,7 +23,6 @@ typedef struct {
|
|||
uint64_t address;
|
||||
} __attribute__((packed)) gdtr;
|
||||
|
||||
|
||||
typedef struct {
|
||||
uint32_t resv;
|
||||
uint64_t rsp[4];
|
||||
|
@ -34,4 +33,4 @@ typedef struct {
|
|||
uint16_t iopb;
|
||||
} __attribute__((packed)) tssr; // Per CPU
|
||||
|
||||
void gdt_init(char* kstack);
|
||||
void gdt_init(char *kstack);
|
Loading…
Add table
Add a link
Reference in a new issue