From 934b90f2f9c725d9e1e6c22b42ec1b7c225144a5 Mon Sep 17 00:00:00 2001 From: bzt Date: Thu, 21 Jan 2021 18:19:54 +0100 Subject: [PATCH] Fix mapping --- aarch64-rpi/bootboot.c | 2 +- dist/bootboot.img | Bin 35016 -> 35032 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/aarch64-rpi/bootboot.c b/aarch64-rpi/bootboot.c index 445d803..7866540 100644 --- a/aarch64-rpi/bootboot.c +++ b/aarch64-rpi/bootboot.c @@ -1766,7 +1766,7 @@ viderr: MapPage(env_addr,(uint64_t)((uint8_t*)&__environment)|0b11|(3<<8)|(1<<10)|(1L<<54)); // stack at the top of the memory (1k each) for(r=0;r<16;r++) - paging[36*512+496]=(uint64_t)((uint8_t*)&__corestack+(uint64_t)r*PAGESIZE)|0b11|(3<<8)|(1<<10)|(1L<<54); + paging[36*512+496+r]=(uint64_t)((uint8_t*)&__corestack+(uint64_t)r*PAGESIZE)|0b11|(3<<8)|(1<<10)|(1L<<54); #if MEM_DEBUG /* dump page translation tables */ diff --git a/dist/bootboot.img b/dist/bootboot.img index bf03e3c48c609c0931b2177ae4e7c09e9781ba1e..7f4bbe4faad79f624d25be8e8876f07471924135 100755 GIT binary patch delta 4039 zcmZWse^gV~9l!SlLO?;FND@F^-b*AQAh805fFq9(0l{L$2>u#`;14EeD%dk?w^IUk zw$*O!>veT)w>4C8m7Qaq(YA4IhuU?W>nx+EUDxecWIeX4=X5RW)Tg#@pBHdvJ^ka| zpWoj1TRop@tKN2&Esgp=2YSV6o&1j`-QXlUwKxR+r+! z_`Q_v7%!)IF&50SV{D%F48~7q@wA4e&929~b+&eX|7;`1CuZ-$n3k&HR;Ri#elI>A z(@vrnQ>|Re4!?5t>gg!~oMxpTOD5CX?j6yy={qT{i7w83P)CF8)wwG)O4+~45c~=u zlA_C!lsyJ=sxUcvK6@6W$?RR@DvVCkqZ){vkk5o(DdxodQ87DjvI`!+Qh=S+EX8yc zB=&&cuXIonbNo<>8J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