summaryrefslogtreecommitdiff
path: root/kc/core/memory.c
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-02-17 13:40:55 +0000
committerAda Christine <adachristine18@gmail.com>2022-02-17 13:40:55 +0000
commit9b63c0000b2e0d9d0a306e56dbc7bc28403e5549 (patch)
tree17ef5aa53d37c4232f8efcca97c5f118a96fb96f /kc/core/memory.c
parentb8ef8b401d9dd1e15f2703eb997fb79a70ae531a (diff)
many changes have happned
- updates to panic() interface - genericized timer interface - (yet unused) additions to task management
Diffstat (limited to 'kc/core/memory.c')
-rw-r--r--kc/core/memory.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/kc/core/memory.c b/kc/core/memory.c
index 0319246..2dac707 100644
--- a/kc/core/memory.c
+++ b/kc/core/memory.c
@@ -320,7 +320,7 @@ static void init_vm_node(
else
{
kputs("fatal: attempt to insert overlapping vm node\n");
- panic(GENERAL_PANIC);
+ PANIC(GENERAL_PANIC);
}
}
@@ -544,7 +544,7 @@ int anonymous_page_handler(uint32_t code, void *address)
kputs("can't fault a present page\n");
// there's no reason a protection violation should happen
// in anonymous space
- panic(UNHANDLED_FAULT);
+ PANIC(UNHANDLED_FAULT);
}
// kernel page mappings are built different
if (address >= (void *)&kc_image_base)
@@ -567,7 +567,7 @@ int anonymous_page_handler(uint32_t code, void *address)
}
else
{
- panic(OUT_OF_MEMORY);
+ PANIC(OUT_OF_MEMORY);
}
}
@@ -605,13 +605,13 @@ int page_fault_handler(uint8_t vector, uint32_t code)
}
if (result)
{
- panic(UNHANDLED_FAULT);
+ PANIC(UNHANDLED_FAULT);
}
}
else
{
kputs("didn't find memory object\n");
- panic(UNHANDLED_FAULT);
+ PANIC(UNHANDLED_FAULT);
}
return 0;
@@ -623,7 +623,7 @@ int general_protection_handler(uint8_t vector, uint32_t code)
(void)vector;
(void)code;
kputs("general protection violation\n");
- panic(UNHANDLED_FAULT);
+ PANIC(UNHANDLED_FAULT);
return 0;
}