X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cpu%2Fmpc512x%2Ftraps.c;h=8000fabd4ade826f19401cfc71942e56384c8535;hb=45627fce18139a74e0755124d27376b520db156c;hp=8455c92761b109b9d9130dddc5510c753e14c9e6;hpb=afaac86fe2948ac84cd9a12bbed883b3c683e7d9;p=oweals%2Fu-boot.git diff --git a/cpu/mpc512x/traps.c b/cpu/mpc512x/traps.c index 8455c92761..8000fabd4a 100644 --- a/cpu/mpc512x/traps.c +++ b/cpu/mpc512x/traps.c @@ -34,7 +34,13 @@ DECLARE_GLOBAL_DATA_PTR; extern unsigned long search_exception_table(unsigned long); -#define END_OF_MEM (gd->bd->bi_memstart + gd->bd->bi_memsize) +/* + * End of addressable memory. This may be less than the actual + * amount of memory on the system if we're unable to keep all + * the memory mapped in. + */ +extern ulong get_effective_memsize(void); +#define END_OF_MEM (gd->bd->bi_memstart + get_effective_memsize()) /* * Trap & Exception support