diff --git a/arch/x86/boot/compressed/aslr.c b/arch/x86/boot/compressed/aslr.c index 3114ae0..e351b99 100644 --- a/arch/x86/boot/compressed/aslr.c +++ b/arch/x86/boot/compressed/aslr.c @@ -301,18 +301,17 @@ static int process_e820_entry(struct e820entry *entry, region.start = entry->addr; region.size = entry->size; +repeat: + start_orig = region.start; + /* Potentially raise address to minimum location. */ if (region.start < minimum) region.start = minimum; -repeat: - /* Return if slot area array is full */ if ( slot_area_index == MAX_SLOT_AREA ) return; - start_orig = region.start; - /* Potentially raise address to meet alignment requirements. */ region.start = ALIGN(region.start, CONFIG_PHYSICAL_ALIGN);