aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-10 17:04:22 -0400
committerIan Moffett <ian@osmora.org>2024-04-10 17:04:22 -0400
commit434b79c0be7fdd72dd965615104b00f52b1dc4c3 (patch)
tree9f248452a5c686ccb4034015b39696c58b10af28 /sys/include
parent055639ca4842d64af6bba9f6719eaedddc4325d1 (diff)
kernel: Get rid of invalid_uaddr()
Use signal_raise(NULL, SIGSEGV) instead Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/system.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/include/sys/system.h b/sys/include/sys/system.h
index 4e34c30..c2e47c2 100644
--- a/sys/include/sys/system.h
+++ b/sys/include/sys/system.h
@@ -32,15 +32,6 @@
#include <sys/types.h>
-/*
- * TODO: Get rid of this when signals are implemented,
- * it is best to segfault the program when this
- * happens.
- */
-#define invalid_uaddr(UADDR) \
- panic("invalid uaddr 0x%p (pid=%d)\n", \
- UADDR, this_td()->pid);
-
#if defined(_KERNEL)
int copyin(uintptr_t uaddr, void *kaddr, size_t len);
int copyout(const void *kaddr, uintptr_t uaddr, size_t len);