summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
diff options
context:
space:
mode:
authordzwdz2021-09-11 18:04:57 +0200
committerdzwdz2021-09-11 18:04:57 +0200
commitaf2f9184e03015dc3b188ea437bbf496638000ce (patch)
tree4b4186d8df73bc1b96e14e5c8eadcf1a4f66692a /src/kernel/main.c
parent0994192f6cab853f4a49ac73aa63f6820c886ec2 (diff)
replace `user_ptr` with a linux-style `__user` annotation
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r--src/kernel/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c
index 97fd6f1..07162b5 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -9,7 +9,7 @@
static void run_init(struct kmain_info *info) {
struct process *proc = process_seed();
- user_ptr init_base = 0x200000;
+ void __user *init_base = (userptr_t)0x200000;
// map the module as rw
for (uintptr_t off = 0; off < info->init.size; off += PAGE_SIZE)