aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-04 23:48:40 -0700
committerChristian Cunningham <cc@localhost>2022-02-04 23:48:40 -0700
commit465a630377b97cff92ce44e9a1f32115e7d1f557 (patch)
tree84b0955e5ea12da850dc777a94bef66c4a45b218 /src/sys
parenta16e8875d13d884ca203bfd83dffe8fae17405c4 (diff)
Move to new mem
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/schedule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sys/schedule.c b/src/sys/schedule.c
index 70aebb9..acd6098 100644
--- a/src/sys/schedule.c
+++ b/src/sys/schedule.c
@@ -2,6 +2,7 @@
#include <globals.h>
#include <graphics/lfb.h>
#include <drivers/uart.h>
+#include <lib/kmem.h>
#include <sys/schedule.h>
#include <util/mutex.h>
@@ -71,7 +72,8 @@ void add_thread(void* pc, void* arg, unsigned char priority)
{
//void* sp = get_stack();
struct RStack r = get_stack();
- struct Thread* thread = (struct Thread*)malloca(sizeof(struct Thread), 4);
+ //struct Thread* thread = (struct Thread*)malloca(sizeof(struct Thread), 4);
+ struct Thread* thread = (struct Thread*)kmalloc(sizeof(struct Thread));
thread->pc = pc;
if (r.sp) {
thread->sp_base = r.idx;