From 0eface07b9c2a565b2fcf95fff3fc755811bfb4e Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 6 Apr 2016 10:47:48 -0700 Subject: Use panic, not die, to terminate elf loader --- pk/elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pk/elf.c b/pk/elf.c index 7107d1c..2740319 100644 --- a/pk/elf.c +++ b/pk/elf.c @@ -1,6 +1,7 @@ // See LICENSE for license details. #include "mmap.h" +#include "pk.h" #include "mtrap.h" #include "boot.h" #include "bits.h" @@ -69,5 +70,5 @@ void load_elf(const char* fn, elf_info* info) return; fail: - die("couldn't open ELF program: %s!", fn); + panic("couldn't open ELF program: %s!", fn); } -- cgit v1.1