]> git.sur5r.net Git - u-boot/blobdiff - cpu/mpc512x/traps.c
kgdb: cpu/mpc* cpu/74xx: include kgdb.h when needed
[u-boot] / cpu / mpc512x / traps.c
index 8455c92761b109b9d9130dddc5510c753e14c9e6..786f4a5a7e59d90c66f4c261bda3f4915ebf3c8a 100644 (file)
  */
 
 #include <common.h>
+#include <kgdb.h>
 #include <asm/processor.h>
 
 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