diff options
author | Benji Dial <Benji3.141@gmail.com> | 2019-12-23 01:33:26 -0500 |
---|---|---|
committer | Benji Dial <Benji3.141@gmail.com> | 2019-12-23 01:33:26 -0500 |
commit | e520b52cd58f70af9a17f330fe1ce98ce059762c (patch) | |
tree | a4d8ec52453b0a8f872aea1ab3c4c5867543c90c /src/kernel/proc.c | |
parent | 4edc0cb2313541e74026c25b52a8f9685d953a14 (diff) | |
download | portland-os-e520b52cd58f70af9a17f330fe1ce98ce059762c.tar.gz |
small changes, part 1
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r-- | src/kernel/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |