From bed49fa0ac7cd3f9cd29b6be37cc2145f57a0d97 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Sat, 25 Nov 2023 23:25:44 +0100 Subject: [PATCH] Fix function prototypes using fastcall and stdcall calling convensions --- xtoskrnl/hl/amd64/runlevel.c | 2 +- xtoskrnl/hl/i686/runlevel.c | 2 +- xtoskrnl/includes/hl.h | 2 +- xtoskrnl/includes/ke.h | 4 ++-- xtoskrnl/ke/panic.c | 2 +- xtoskrnl/ke/runlevel.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/xtoskrnl/hl/amd64/runlevel.c b/xtoskrnl/hl/amd64/runlevel.c index d67b5d5e..5979a485 100644 --- a/xtoskrnl/hl/amd64/runlevel.c +++ b/xtoskrnl/hl/amd64/runlevel.c @@ -18,7 +18,7 @@ */ XTFASTCALL KRUNLEVEL -HlGetRunLevel() +HlGetRunLevel(VOID) { return (KRUNLEVEL)ArReadControlRegister(8); } diff --git a/xtoskrnl/hl/i686/runlevel.c b/xtoskrnl/hl/i686/runlevel.c index 8a22b35f..b4fad236 100644 --- a/xtoskrnl/hl/i686/runlevel.c +++ b/xtoskrnl/hl/i686/runlevel.c @@ -18,7 +18,7 @@ */ XTFASTCALL KRUNLEVEL -HlGetRunLevel() +HlGetRunLevel(VOID) { return HlpTransformApicTprToRunLevel(HlReadApicRegister(APIC_TPR)); } diff --git a/xtoskrnl/includes/hl.h b/xtoskrnl/includes/hl.h index fb72c9b7..6ff39d15 100644 --- a/xtoskrnl/includes/hl.h +++ b/xtoskrnl/includes/hl.h @@ -42,7 +42,7 @@ HlDrawPixel(IN ULONG PosX, XTFASTCALL KRUNLEVEL -HlGetRunLevel(); +HlGetRunLevel(VOID); XTCDECL diff --git a/xtoskrnl/includes/ke.h b/xtoskrnl/includes/ke.h index 0dd8e0b9..39fab336 100644 --- a/xtoskrnl/includes/ke.h +++ b/xtoskrnl/includes/ke.h @@ -19,11 +19,11 @@ KeClearEvent(IN PKEVENT Event); XTFASTCALL KRUNLEVEL -KeGetCurrentRunLevel(); +KeGetCurrentRunLevel(VOID); XTAPI VOID -KeHaltSystem(); +KeHaltSystem(VOID); XTAPI VOID diff --git a/xtoskrnl/ke/panic.c b/xtoskrnl/ke/panic.c index d9cbd0b8..192a747e 100644 --- a/xtoskrnl/ke/panic.c +++ b/xtoskrnl/ke/panic.c @@ -18,7 +18,7 @@ */ XTAPI VOID -KeHaltSystem() +KeHaltSystem(VOID) { /* Enter infinite loop */ for(;;) diff --git a/xtoskrnl/ke/runlevel.c b/xtoskrnl/ke/runlevel.c index dee28b02..4a6a548e 100644 --- a/xtoskrnl/ke/runlevel.c +++ b/xtoskrnl/ke/runlevel.c @@ -18,7 +18,7 @@ */ XTFASTCALL KRUNLEVEL -KeGetCurrentRunLevel() +KeGetCurrentRunLevel(VOID) { return HlGetRunLevel(); }