Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145699
b: refs/heads/master
c: c4f6823
h: refs/heads/master
i:
  145697: f96ab21
  145695: e412955
v: v3
  • Loading branch information
H. Peter Anvin committed May 12, 2009
1 parent e86f807 commit 16ee486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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: 7ed42a28b269f8682eefae27f5c11187eb56e63b
refs/heads/master: c4f68236e41641494f9c8a418ccc0678c335bbb5
14 changes: 3 additions & 11 deletions trunk/arch/x86/include/asm/page_64_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,9 @@
*/
#define __PAGE_OFFSET _AC(0xffff880000000000, UL)

#define __PHYSICAL_START CONFIG_PHYSICAL_START
#define __KERNEL_ALIGN 0x200000

/*
* Make sure kernel is aligned to 2MB address. Catching it at compile
* time is better. Change your config file and compile the kernel
* for a 2MB aligned address (CONFIG_PHYSICAL_START)
*/
#if (CONFIG_PHYSICAL_START % __KERNEL_ALIGN) != 0
#error "CONFIG_PHYSICAL_START must be a multiple of 2MB"
#endif
#define __PHYSICAL_START ((CONFIG_PHYSICAL_START + \
(CONFIG_PHYSICAL_ALIGN - 1)) & \
~(CONFIG_PHYSICAL_ALIGN - 1))

#define __START_KERNEL (__START_KERNEL_map + __PHYSICAL_START)
#define __START_KERNEL_map _AC(0xffffffff80000000, UL)
Expand Down

0 comments on commit 16ee486

Please sign in to comment.