Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45927
b: refs/heads/master
c: d4e1c88
h: refs/heads/master
i:
  45925: a081e47
  45923: 77e6b32
  45919: ada8b72
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Jan 24, 2007
1 parent 8f57eb3 commit a0d8ff1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: d28122a5877cc40350fa801353fd5a9350563ec3
refs/heads/master: d4e1c889c1ec547371227558e1da5f2f50c7dd5e
7 changes: 6 additions & 1 deletion trunk/arch/arm/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include <asm/thread_info.h>
#include <asm/system.h>

#if (PHYS_OFFSET & 0x001fffff)
#error "PHYS_OFFSET must be at an even 2MiB boundary!"
#endif

#define KERNEL_RAM_VADDR (PAGE_OFFSET + TEXT_OFFSET)
#define KERNEL_RAM_PADDR (PHYS_OFFSET + TEXT_OFFSET)

Expand Down Expand Up @@ -251,7 +255,8 @@ __create_page_tables:
* Then map first 1MB of ram in case it contains our boot params.
*/
add r0, r4, #PAGE_OFFSET >> 18
orr r6, r7, #PHYS_OFFSET
orr r6, r7, #(PHYS_OFFSET & 0xff000000)
orr r6, r6, #(PHYS_OFFSET & 0x00e00000)
str r6, [r0]

#ifdef CONFIG_XIP_KERNEL
Expand Down

0 comments on commit a0d8ff1

Please sign in to comment.