aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVenkateswara Rao Mandela2017-08-08 06:42:07 -0500
committerVenkateswara Rao Mandela2017-08-31 00:07:30 -0500
commit516e305f506dbfc83d7cd2c0e6f223032962793b (patch)
tree8909f8a7fa91cdeec4eed4db20dec576c0056027
parent2e6a3711b84f2048d1735c95798b96f1170ceeba (diff)
downloadu-boot-516e305f506dbfc83d7cd2c0e6f223032962793b.tar.gz
u-boot-516e305f506dbfc83d7cd2c0e6f223032962793b.tar.xz
u-boot-516e305f506dbfc83d7cd2c0e6f223032962793b.zip
spl: dra7xx: early boot: add error message
display a descriptive error message in case the number of level 2 page table entries is insufficient for the current binary. Change-Id: I592ab048b1109caefcd8cdc5c491a7f036503642 Signed-off-by: Venkateswara Rao Mandela <venkat.mandela@ti.com>
-rw-r--r--board/ti/dra7xx/lateattach.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/ti/dra7xx/lateattach.c b/board/ti/dra7xx/lateattach.c
index 0f1d1fd293..544b673db8 100644
--- a/board/ti/dra7xx/lateattach.c
+++ b/board/ti/dra7xx/lateattach.c
@@ -497,6 +497,12 @@ int get_l2_pg_tbl_addr(unsigned int virt, unsigned int *pg_tbl_addr)
497 ret = 0; 497 ret = 0;
498 } 498 }
499 499
500 if ((match_found == 0) && (i >= MAX_NUM_L2_PAGE_TABLES)) {
501 printf("Insufficient number of L2 page table entries\n");
502 printf("number of entries currently allowed is %d\n",
503 MAX_NUM_L2_PAGE_TABLES);
504 }
505
500 return ret; 506 return ret;
501} 507}
502 508