diff options
author | Bernd Schmidt <bernds_cb1@t-online.de> | 2009-03-02 11:37:48 +0100 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-03-02 11:37:48 +0100 |
commit | e84dcaa18b2785d8ab20a7cb25612d89feb89fa7 (patch) | |
tree | a7ad18bc3eb74414a6c293319c29b70aea328bcc /arch/blackfin/kernel/cplb-nompu/cplbinit.c | |
parent | Blackfin arch: use common KGDB_TESTS rather than our own KGDB_TESTCASE (diff) | |
download | linux-e84dcaa18b2785d8ab20a7cb25612d89feb89fa7.tar.xz linux-e84dcaa18b2785d8ab20a7cb25612d89feb89fa7.zip |
Blackfin arch: fix bug - jump_to_zero test case failed on noMPU kernel
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>
Diffstat (limited to 'arch/blackfin/kernel/cplb-nompu/cplbinit.c')
-rw-r--r-- | arch/blackfin/kernel/cplb-nompu/cplbinit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/cplb-nompu/cplbinit.c b/arch/blackfin/kernel/cplb-nompu/cplbinit.c index 0e28f7595733..d6c067782e63 100644 --- a/arch/blackfin/kernel/cplb-nompu/cplbinit.c +++ b/arch/blackfin/kernel/cplb-nompu/cplbinit.c @@ -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; |