goldfish_memorymap:Resize VIRT_FLASH_PSECTION

Sumamry:
  Adjust VIRT_FLASH_PSECTION from 0x00000000-0x08000000 -> 0x00600000-0x08000000
  The above changes avoid the problem of directly restarting when the process accesses/executes at address 0x0 without causing assert

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
chenrun1
2024-12-02 11:06:10 +08:00
committed by Xiang Xiao
parent 2db0b69335
commit a87c194b40
+2 -2
View File
@@ -40,7 +40,7 @@
/* Goldfish virt Physical Memory Map ****************************************/
#define VIRT_FLASH_PSECTION 0x00000000 /* 0x00000000-0x08000000 */
#define VIRT_FLASH_PSECTION 0x00600000 /* 0x00600000-0x08000000 */
#define VIRT_IO_PSECTION 0x08000000 /* 0x08000000-0x0f000000 */
#define VIRT_PCIE_PSECTION 0x10000000 /* 0x10000000-0x40000000 */
#define VIRT_DDR_PSECTION 0x40000000 /* 0x40000000-0x50000000 */
@@ -54,7 +54,7 @@
/* Sizes of memory regions in bytes. */
#define VIRT_FLASH_SECSIZE (128*1024*1024)
#define VIRT_FLASH_SECSIZE (122*1024*1024)
#define VIRT_IO_SECSIZE (112*1024*1024)
#define VIRT_PCIE_SECSIZE (3*256*1024*1024)
#define VIRT_DDR_SECSIZE (256*1024*1024)