Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262867
b: refs/heads/master
c: 9c40818
h: refs/heads/master
i:
  262865: 1021e6a
  262863: 2ed9f51
v: v3
  • Loading branch information
Andy Lutomirski authored and H. Peter Anvin committed Aug 4, 2011
1 parent afaf867 commit 8964f06
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 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: 1bdfac19b3ecfca545281c15c7aea7ebc2eaef31
refs/heads/master: 9c40818da5b39fca236029059ab839857b1ef56c
36 changes: 18 additions & 18 deletions trunk/arch/x86/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,24 @@ SECTIONS

#ifdef CONFIG_X86_64

. = ALIGN(PAGE_SIZE);
__vvar_page = .;

.vvar : AT(ADDR(.vvar) - LOAD_OFFSET) {

/* Place all vvars at the offsets in asm/vvar.h. */
#define EMIT_VVAR(name, offset) \
. = offset; \
*(.vvar_ ## name)
#define __VVAR_KERNEL_LDS
#include <asm/vvar.h>
#undef __VVAR_KERNEL_LDS
#undef EMIT_VVAR

} :data

. = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE);

#define VSYSCALL_ADDR (-10*1024*1024)

#define VLOAD_OFFSET (VSYSCALL_ADDR - __vsyscall_0 + LOAD_OFFSET)
Expand All @@ -162,7 +180,6 @@ SECTIONS
#define VVIRT_OFFSET (VSYSCALL_ADDR - __vsyscall_0)
#define VVIRT(x) (ADDR(x) - VVIRT_OFFSET)

. = ALIGN(4096);
__vsyscall_0 = .;

. = VSYSCALL_ADDR;
Expand All @@ -185,23 +202,6 @@ SECTIONS
#undef VVIRT_OFFSET
#undef VVIRT

__vvar_page = .;

.vvar : AT(ADDR(.vvar) - LOAD_OFFSET) {

/* Place all vvars at the offsets in asm/vvar.h. */
#define EMIT_VVAR(name, offset) \
. = offset; \
*(.vvar_ ## name)
#define __VVAR_KERNEL_LDS
#include <asm/vvar.h>
#undef __VVAR_KERNEL_LDS
#undef EMIT_VVAR

} :data

. = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE);

#endif /* CONFIG_X86_64 */

/* Init code and data - will be freed after init */
Expand Down

0 comments on commit 8964f06

Please sign in to comment.