smol-gilbraltar/test/test03.c
2024-12-20 23:45:12 +01:00

28 lines
1.4 KiB
C

#include <log.h>
#include <sysconfig.h>
extern char _etext[];
void main(void) {
gilbraltar_log(INFO, " _____ _ _ _ _ _ \r\n");
gilbraltar_log(INFO, "| __|_| | |_ ___ ___| | |_ ___ ___ \r\n");
gilbraltar_log(INFO, "| | | | | . | _| .'| | _| .'| _|\r\n");
gilbraltar_log(INFO, "|_____|_|_|___|_| |__,|_|_| |__,|_| \r\n");
gilbraltar_log(INFO, " BL31 @ 0x%08x - 0x%08x\r\n", 0x0, 0x8000);
gilbraltar_log(INFO, " EL3 stack @ 0x%08x\r\n", 0x6f000);
gilbraltar_log(INFO, " kernel @ 0x%08x - 0x%08lx\r\n",
MEM_KERNEL_START, (uintptr_t) _etext);
gilbraltar_log(INFO, " stack @ 0x%08x - 0x%08x\r\n",
MEM_KERNEL_STACK - KERNEL_STACK_SIZE, MEM_KERNEL_STACK);
gilbraltar_log(INFO, "exception stack @ 0x%08x - 0x%08x\r\n",
MEM_EXCEPTION_STACK - EXCEPTION_STACK_SIZE,
MEM_EXCEPTION_STACK);
gilbraltar_log(INFO, " irq stack @ 0x%08x - 0x%08x\r\n",
MEM_IRQ_STACK - EXCEPTION_STACK_SIZE, MEM_IRQ_STACK);
gilbraltar_log(INFO, " fiq stack @ 0x%08x - 0x%08x\r\n",
MEM_FIQ_STACK - EXCEPTION_STACK_SIZE, MEM_FIQ_STACK);
gilbraltar_log(INFO, " pages table @ 0x%08x - 0x%08x\r\n", MEM_PAGE_TABLE1,
MEM_PAGE_TABLE1_END);
gilbraltar_log(INFO, "coherent region @ 0x%08x - 0x%08x\r\n",
MEM_COHERENT_REGION, MEM_COHERENT_REGION + 4 * MEGABYTE);
}