From 86ee5ee30e2f98137da80434af788bf928f49d55 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 13 Mar 2024 23:28:44 -0400 Subject: kernel/amd64: machdep: Check for NULL instead of 0 Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') 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; } -- cgit v1.2.3