Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235181
b: refs/heads/master
c: 495162d
h: refs/heads/master
i:
  235179: bc2706f
v: v3
  • Loading branch information
Michal Simek committed Mar 9, 2011
1 parent 03c6a06 commit ac4e68b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 601149775158ea825326734c2db5d90190249bd7
refs/heads/master: 495162dfefe3f6e3a8e908aa2f0a964a572d3e87
12 changes: 7 additions & 5 deletions trunk/arch/microblaze/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <asm/mmu.h>
#include <asm/processor.h>

.data
.section .data
.global empty_zero_page
.align 12
empty_zero_page:
Expand All @@ -50,6 +50,11 @@ swapper_pg_dir:

#endif /* CONFIG_MMU */

.section .rodata
.align 4
endian_check:
.word 1

__HEAD
ENTRY(_start)
#if CONFIG_KERNEL_BASE_ADDR == 0
Expand Down Expand Up @@ -79,10 +84,7 @@ real_start:
/* Does r7 point to a valid FDT? Load HEADER magic number */
/* Run time Big/Little endian platform */
/* Save 1 as word and load byte - 0 - BIG, 1 - LITTLE */
addik r11, r0, 0x1 /* BIG/LITTLE checking value */
/* __bss_start will be zeroed later - it is just temp location */
swi r11, r0, TOPHYS(__bss_start)
lbui r11, r0, TOPHYS(__bss_start)
lbui r11, r0, TOPHYS(endian_check)
beqid r11, big_endian /* DO NOT break delay stop dependency */
lw r11, r0, r7 /* Big endian load in delay slot */
lwr r11, r0, r7 /* Little endian load */
Expand Down

0 comments on commit ac4e68b

Please sign in to comment.