From e520b52cd58f70af9a17f330fe1ce98ce059762c Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 23 Dec 2019 01:33:26 -0500 Subject: small changes, part 1 --- src/kernel/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/proc.c') diff --git a/src/kernel/proc.c b/src/kernel/proc.c index dba6b92..a0fb863 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -25,7 +25,7 @@ uint16_t new_proc(uint8_t *file) { uint16_t handle = open_file(file); if (handle) for (uint16_t id = 3; id; ++id) - if (!(PROCS[id].memory_start)) { + if (!PROCS[id].memory_start) { uint32_t size = get_size(id); void *mem = PROCS[id].memory_start = allocate_pages(PROCS[id].n_pages = (size - 1) / 4096 + 1, id); read_file(handle, size, mem); -- cgit v1.2.3