From 9fbf75ca45a972137d99ed99cd168cd2b496c5de Mon Sep 17 00:00:00 2001 From: Zhuowei Zhang Date: Thu, 21 Feb 2019 20:15:14 -0800 Subject: [PATCH] ok, this doesn't even reboot the device. So Dxe is broken --- Pixel3XL/Pixel3XLDxe/Pixel3XLDxe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Pixel3XL/Pixel3XLDxe/Pixel3XLDxe.c b/Pixel3XL/Pixel3XLDxe/Pixel3XLDxe.c index 2bd007e..7606b58 100644 --- a/Pixel3XL/Pixel3XLDxe/Pixel3XLDxe.c +++ b/Pixel3XL/Pixel3XLDxe/Pixel3XLDxe.c @@ -40,12 +40,17 @@ InitPeripherals ( IN VOID ) { + /* // set the screen for (UINT64 addr = 0x9d400000ull; addr < 0x9d400000ull + (1440 * 2960 * 4); addr += 4) { MmioWrite32(addr, 0); } // reboot MmioWrite32(0xC264000, 0); + */ + // you know what, just set the pshold + int* pshold = (int*)0xC264000; + *pshold = 0; // spin forever while (1) {} }