diff --git a/stand/kboot/arch/aarch64/load_addr.c b/stand/kboot/arch/aarch64/load_addr.c --- a/stand/kboot/arch/aarch64/load_addr.c +++ b/stand/kboot/arch/aarch64/load_addr.c @@ -175,7 +175,10 @@ { #define HOLE_SIZE (64ul << 20) #define KERN_ALIGN (2ul << 20) - uint64_t s; + static uint64_t s = 0; + + if (s != 0) + return (s); s = first_avail(KERN_ALIGN, HOLE_SIZE, SYSTEM_RAM); if (s != 0)