diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-13 23:28:44 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-13 23:29:21 -0400 |
commit | 86ee5ee30e2f98137da80434af788bf928f49d55 (patch) | |
tree | 9765ecc41e2c4fbdb3f0a48b4ef21d140ce16fc8 /sys | |
parent | 0ea5a3e31c93e1c3e8dc8e121d63fc42a24e1d30 (diff) |
kernel/amd64: machdep: Check for NULL instead of 0
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 5327189..7ad3e6a 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -163,7 +163,7 @@ processor_init_pcb(struct proc *proc) /* Allocate FPU save area, aligned on a 16 byte boundary */ pcb->fpu_state = PHYS_TO_VIRT(vm_alloc_pageframe(1)); - if (pcb->fpu_state == 0) { + if (pcb->fpu_state == NULL) { return -1; } |