From f4c6a17c6385f8f309482e133bccd01f49389712 Mon Sep 17 00:00:00 2001 From: Zhuowei Zhang Date: Thu, 21 Feb 2019 17:57:14 -0800 Subject: [PATCH] test boot by adding code to blank screen and freeze --- Pixel3XL/Library/Pixel3XLLib/Pixel3XLHelper.S | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Pixel3XL/Library/Pixel3XLLib/Pixel3XLHelper.S b/Pixel3XL/Library/Pixel3XLLib/Pixel3XLHelper.S index eb85f67..8d66f28 100644 --- a/Pixel3XL/Library/Pixel3XLLib/Pixel3XLHelper.S +++ b/Pixel3XL/Library/Pixel3XLLib/Pixel3XLHelper.S @@ -18,6 +18,15 @@ .align 3 ASM_FUNC(ArmPlatformPeiBootAction) +// blank the screen, freeze forever + mov x1, 10240 + mov x0, 0x9d400000 + movk x1, 0x9e44, lsl 16 // 1440 * 2960 +.L2: + str wzr, [x0], 4 + cmp x0, x1 + bne .L2 + b . ret //UINTN