mpc/sbc8641d: Add missing board_lmb_reserves
PATCH 1/1 mpc/sbc8641d: Add missing board_lmb_reserves
We're missing the board_lmb_reserve definitions that allow cpu_mp_lmb_reserve to be called; this means that Linux is free to reallocate reserved pages. Linux currently boots because we're getting lucky - the page we've reserved is high enough in memory that it isn't allocated by Linux while we still need it to be in existence.
--- board/freescale/mpc8641hpcn/mpc8641hpcn.c | 9 +++++++++ board/sbc8641d/sbc8641d.c | 9 +++++++++ 2 files changed, 18 insertions(+), 0 deletions(-)
board/freescale/mpc8641hpcn/mpc8641hpcn.c +9 -0
@@ -374,3 +374,12 @@ void board_reset(void)while (1 ) ; } + +#if (CONFIG_NUM_CPUS >1 ) +extern void cpu_mp_lmb_reserve (struct lmb *lmb); + +void board_lmb_reserve (struct lmb *lmb) +{ +cpu_mp_lmb_reserve (lmb); +} +#endif
board/sbc8641d/sbc8641d.c +9 -0
@@ -413,3 +413,12 @@ void board_reset(void) __asm__ __volatile__ ("rfi" );#endif } + +#if (CONFIG_NUM_CPUS >1 ) +extern void cpu_mp_lmb_reserve (struct lmb *lmb); + +void board_lmb_reserve (struct lmb *lmb) +{ +cpu_mp_lmb_reserve (lmb); +} +#endif
Signature · 1 line
1.5.6.6
Kumar Gala
AppliedPATCH 1/1 mpc/sbc8641d: Add missing board_lmb_reserves
Quoted 7 lines · Becky Bruce
We're missing the
board_lmb_reservedefinitions that allowcpu_mp_lmb_reserveto be called; this means that Linux is free to reallocate reserved pages. Linux currently boots because we're getting lucky - the page we've reserved is high enough in memory that it isn't allocated by Linux while we still need it to be in existence.
Quoted 5 lines
Signed-off-by Becky Bruce <[email protected]>---
board/freescale/mpc8641hpcn/mpc8641hpcn.c | 9 +++++++++ board/sbc8641d/sbc8641d.c | 9 +++++++++ 2 files changed, 18 insertions(+), 0 deletions(-)
applied
- k