X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=inline;f=Kernel%2Farch%2Fx86%2Finclude%2Farch.h;h=66d7a79259d667b10a66398b0568662293be1437;hb=3764c294f21229bdf700f436fa4884f5e76e0d3a;hp=f9813ed5aceaa348ce177bfca683d5acdd7c19ea;hpb=9d85201216cb35e1b1e051b1d7cdc38eaa5befa4;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/include/arch.h b/Kernel/arch/x86/include/arch.h index f9813ed5..66d7a792 100644 --- a/Kernel/arch/x86/include/arch.h +++ b/Kernel/arch/x86/include/arch.h @@ -82,12 +82,12 @@ typedef Uint64 tPAddr; typedef Uint32 tVAddr; typedef struct { - Uint gs, fs, es, ds; - Uint edi, esi, ebp, kesp; - Uint ebx, edx, ecx, eax; - Uint int_num, err_code; - Uint eip, cs; - Uint eflags, esp, ss; + Uint32 gs, fs, es, ds; + Uint32 edi, esi, ebp, kesp; + Uint32 ebx, edx, ecx, eax; + Uint32 int_num, err_code; + Uint32 eip, cs; + Uint32 eflags, esp, ss; } tRegs; typedef struct { @@ -123,9 +123,13 @@ typedef struct { typedef struct { Uint EIP, ESP, EBP; + Uint32 UserCS, UserEIP; } tTaskState; // === FUNCTIONS === +extern void Debug_PutCharDebug(char ch); +extern void Debug_PutStringDebug(const char *String); + extern int IS_LOCKED(struct sShortSpinlock *Lock); extern int CPU_HAS_LOCK(struct sShortSpinlock *Lock); extern void SHORTLOCK(struct sShortSpinlock *Lock);