From 44a73ecab6e91519627786a5101cd4f1a2f2b0d7 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 30 Oct 2024 00:57:33 +0200 Subject: most of the way to passing tests --- include/arch/tcb.h | 2 ++ include/kmi/panic.h | 4 ++++ include/kmi/vmem.h | 2 ++ 3 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/arch/tcb.h b/include/arch/tcb.h index 4f75419..8eddb07 100644 --- a/include/arch/tcb.h +++ b/include/arch/tcb.h @@ -42,6 +42,8 @@ stat_t setup_rpc_stack(struct tcb *t); */ void destroy_rpc_stack(struct tcb *t); +void copy_rpc_stack(struct tcb *t, struct tcb *c); + /** * Reset RPC stack to top. * diff --git a/include/kmi/panic.h b/include/kmi/panic.h index 7a498fa..121323c 100644 --- a/include/kmi/panic.h +++ b/include/kmi/panic.h @@ -4,6 +4,8 @@ #ifndef KMI_PANIC_H #define KMI_PANIC_H +#include + /** * @file panic.h * Kernel panic handler. @@ -20,4 +22,6 @@ */ __noreturn void kernel_panic(void *pc, void *addr, long cause); +__noreturn void unhandled_panic(void *pc, void *addr, long cause); + #endif /* KMI_PANIC_H */ diff --git a/include/kmi/vmem.h b/include/kmi/vmem.h index c53f009..9424e33 100644 --- a/include/kmi/vmem.h +++ b/include/kmi/vmem.h @@ -174,4 +174,6 @@ stat_t copy_uvmem(struct tcb *d, struct tcb *s); */ vmflags_t sanitize_uvflags(vmflags_t flags); +void handle_pagefault(vm_t addr); + #endif /* KMI_VMEM_H */ -- cgit v1.3