Skip to content

Commit

Permalink
Blackfin arch: fix bug - jump_to_zero test case failed on noMPU kernel
Browse files Browse the repository at this point in the history
The nompu code is now derived from the mpu code, and had the same problem -
no null pointer detection on ICPLBs.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Cc: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Bernd Schmidt authored and Bryan Wu committed Mar 2, 2009
1 parent 34d464f commit e84dcaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/blackfin/kernel/cplb-nompu/cplbinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ void __init generate_cplb_tables_cpu(unsigned int cpu)

i_d = i_i = 0;

#ifdef CONFIG_DEBUG_HUNT_FOR_ZERO
/* Set up the zero page. */
d_tbl[i_d].addr = 0;
d_tbl[i_d++].data = SDRAM_OOPS | PAGE_SIZE_1KB;
i_tbl[i_i].addr = 0;
i_tbl[i_i++].data = SDRAM_OOPS | PAGE_SIZE_1KB;
#endif

/* Cover kernel memory with 4M pages. */
addr = 0;
Expand Down

0 comments on commit e84dcaa

Please sign in to comment.