aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 00:57:33 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 00:57:33 +0200
commit44a73ecab6e91519627786a5101cd4f1a2f2b0d7 (patch)
treef5c811050a4d5ee832f5883c4d0c27efddd60817 /include
parent5976ad390a15726c3ddfacf8c8b282c8350f9554 (diff)
downloadkmi-44a73ecab6e91519627786a5101cd4f1a2f2b0d7.tar.gz
kmi-44a73ecab6e91519627786a5101cd4f1a2f2b0d7.zip
most of the way to passing tests
Diffstat (limited to 'include')
-rw-r--r--include/arch/tcb.h2
-rw-r--r--include/kmi/panic.h4
-rw-r--r--include/kmi/vmem.h2
3 files changed, 8 insertions, 0 deletions
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 <kmi/attrs.h>
+
/**
* @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 */