Skip to content

Commit

Permalink
Blackfin arch: do not bother initializing the first 4k
Browse files Browse the repository at this point in the history
our kernel should be sane now, and we want to catch NULL bugs,
not ignore them

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Nov 18, 2008
1 parent c2414bd commit 9f20cf2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions arch/blackfin/mach-common/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -244,18 +244,6 @@ ENTRY(_real_start)
r2.h = ___bss_stop;
call __init_clear_bss

/* In case there is a NULL pointer reference,
* zero out region before stext
*/
p1 = r0;
r2.l = __stext;
r2.h = __stext;
r2 >>= 2;
p2 = r2;
lsetup (.L_clear_zero, .L_clear_zero) lc0 = p2;
.L_clear_zero:
[p1++] = r0;

/* Pass the u-boot arguments to the global value command line */
R0 = R7;
call _cmdline_init;
Expand Down

0 comments on commit 9f20cf2

Please sign in to comment.