[rtems commit] bsp/qoriq: Use at most 2GiB of RAM
Sebastian Huber
sebh at rtems.org
Thu Mar 2 15:55:24 UTC 2017
Module: rtems
Branch: master
Commit: c0dafd7ba340f51c199a3b5bc603b952c4c983de
Changeset: http://git.rtems.org/rtems/commit/?id=c0dafd7ba340f51c199a3b5bc603b952c4c983de
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Mar 2 16:53:45 2017 +0100
bsp/qoriq: Use at most 2GiB of RAM
---
c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c b/c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c
index def9d52..3c12be8 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c
+++ b/c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c
@@ -177,7 +177,7 @@ static void TEXT config_fdt_adjust(void)
size = 0;
}
- size = MAX(size, 0x80000000U);
+ size = MIN(size, 0x80000000U);
if (begin == 0 && size > (uintptr_t) bsp_section_work_end) {
config[WORKSPACE_ENTRY_INDEX].size += (uintptr_t) size
More information about the vc
mailing list