Commit
03b6bed17ea6 ArmVirtPkg/XenRelocatablePlatformLib: rewrite DTB
memory node retrieval in C") introduced a FindMemNode () C function
that takes pointers to system memory base and size as arguments, but the
calling code passes them in the wrong order.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
// encountered. Since we are calling a C function, use the window at the\r
// beginning of the FD image as a temp stack.\r
//\r
- adr x1, PcdGet64 (PcdSystemMemorySize)\r
- adr x2, PcdGet64 (PcdSystemMemoryBase)\r
+ adr x1, PcdGet64 (PcdSystemMemoryBase)\r
+ adr x2, PcdGet64 (PcdSystemMemorySize)\r
mov sp, x7\r
bl FindMemnode\r
cbz x0, .Lout\r
// encountered. Since we are calling a C function, use the window at the\r
// beginning of the FD image as a temp stack.\r
//\r
- ldr r1, =PcdGet64 (PcdSystemMemorySize)\r
- ldr r2, =PcdGet64 (PcdSystemMemoryBase)\r
+ ldr r1, =PcdGet64 (PcdSystemMemoryBase)\r
+ ldr r2, =PcdGet64 (PcdSystemMemorySize)\r
mov sp, r5\r
bl FindMemnode\r
teq r0, #0\r
// encountered. Since we are calling a C function, use the window at the\r
// beginning of the FD image as a temp stack.\r
//\r
- adr x1, PcdGet64 (PcdSystemMemorySize)\r
- adr x2, PcdGet64 (PcdSystemMemoryBase)\r
+ adr x1, PcdGet64 (PcdSystemMemoryBase)\r
+ adr x2, PcdGet64 (PcdSystemMemorySize)\r
mov sp, x7\r
bl FindMemnode\r
cbz x0, .Lout\r
// encountered. Since we are calling a C function, use the window at the\r
// beginning of the FD image as a temp stack.\r
//\r
- ldr r1, =PcdGet64 (PcdSystemMemorySize)\r
- ldr r2, =PcdGet64 (PcdSystemMemoryBase)\r
+ ldr r1, =PcdGet64 (PcdSystemMemoryBase)\r
+ ldr r2, =PcdGet64 (PcdSystemMemorySize)\r
mov sp, r5\r
bl FindMemnode\r
teq r0, #0\r