summaryrefslogtreecommitdiff
path: root/arch/i386/include
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-02-16 12:50:50 -0600
committerDanny Holman <dholman@gymli.org>2024-02-16 12:50:50 -0600
commitd0b2495636d042a1f301fd2d0d68d7f782275cd4 (patch)
tree20bda56ea19c5a0b6a245ed2e68bc70827c596d7 /arch/i386/include
parent4dd7abb188a1587bc2086409e0445ef11e834feb (diff)
arch: i386: syscall.c: add functions that dump data
Add functions to the syscall handlers that dump registers and stack in case of catastrophic failure. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/include')
-rw-r--r--arch/i386/include/kernel/syscall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/include/kernel/syscall.h b/arch/i386/include/kernel/syscall.h
index fdd6520..788e5da 100644
--- a/arch/i386/include/kernel/syscall.h
+++ b/arch/i386/include/kernel/syscall.h
@@ -2,6 +2,7 @@
#define I386_SYSCALL_H
#include <kernel/isr.h>
+#include <stddef.h>
// Unix standard calls
#define SYS_FORK 1
@@ -27,5 +28,6 @@
int handle_syscall(struct isr_frame *frame);
void dump_reg(struct isr_frame *frame);
+void dump_stack(uintptr_t esp, size_t len);
#endif