From 092bc78a4231602f4dfdeb760c92109ba2b2c20b Mon Sep 17 00:00:00 2001 From: Stanislav Motylkov Date: Wed, 3 Jun 2020 02:04:07 +0300 Subject: [PATCH] [FREELDR] Fix register offset Addendum to 10e52f6. --- boot/freeldr/freeldr/arch/i386/xbox/xboxmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/freeldr/freeldr/arch/i386/xbox/xboxmem.c b/boot/freeldr/freeldr/arch/i386/xbox/xboxmem.c index 29e1382be18..57a88ecf4a8 100644 --- a/boot/freeldr/freeldr/arch/i386/xbox/xboxmem.c +++ b/boot/freeldr/freeldr/arch/i386/xbox/xboxmem.c @@ -61,7 +61,7 @@ XboxMemInit(VOID) PVOID MembaseLow = (PVOID)0; WRITE_REGISTER_ULONG((PULONG)NV2A_FB_CFG0, 0x03070103); - WRITE_REGISTER_ULONG((PULONG)NV2A_FB_CFG0 + 4, 0x11448000); + WRITE_REGISTER_ULONG((PULONG)(NV2A_FB_CFG0 + 4), 0x11448000); /* Prep hardware for 128 Mb */ WRITE_PORT_ULONG((PULONG)0xCF8, CONFIG_CMD(0, 0, 0x84));