Kernel: Merge TSS.h into i386.h.

This commit is contained in:
Andreas Kling 2019-04-14 04:39:56 +02:00
parent c2093ad994
commit 4132f645ee
Notes: sideshowbarker 2024-07-19 14:43:27 +09:00
3 changed files with 20 additions and 24 deletions

View file

@ -1,23 +0,0 @@
#pragma once
#include <AK/Types.h>
struct [[gnu::packed]] TSS32 {
word backlink, __blh;
dword esp0;
word ss0, __ss0h;
dword esp1;
word ss1, __ss1h;
dword esp2;
word ss2, __ss2h;
dword cr3, eip, eflags;
dword eax,ecx,edx,ebx,esp,ebp,esi,edi;
word es, __esh;
word cs, __csh;
word ss, __ssh;
word ds, __dsh;
word fs, __fsh;
word gs, __gsh;
word ldt, __ldth;
word trace, iomapbase;
};

View file

@ -1,7 +1,6 @@
#pragma once
#include <Kernel/i386.h>
#include <Kernel/TSS.h>
#include <Kernel/KResult.h>
#include <Kernel/LinearAddress.h>
#include <Kernel/UnixTypes.h>

View file

@ -6,6 +6,26 @@
#define PAGE_SIZE 4096
#define PAGE_MASK 0xfffff000
struct [[gnu::packed]] TSS32 {
word backlink, __blh;
dword esp0;
word ss0, __ss0h;
dword esp1;
word ss1, __ss1h;
dword esp2;
word ss2, __ss2h;
dword cr3, eip, eflags;
dword eax,ecx,edx,ebx,esp,ebp,esi,edi;
word es, __esh;
word cs, __csh;
word ss, __ssh;
word ds, __dsh;
word fs, __fsh;
word gs, __gsh;
word ldt, __ldth;
word trace, iomapbase;
};
union [[gnu::packed]] Descriptor {
struct {
word limit_lo;