aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
authorEric W. Biderman <ebiderman@xmission.com>2007-07-16 02:37:28 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:35 -0400
commitb1c931e39327ef121797927d4b3198d370e75b9b (patch)
treec36c35ce43b1b0f9458cbe0141b4184c078eef12 /arch/x86_64
parentd37bf60de0b4ddc1633cf278189d3c9bf28fe3d2 (diff)
x86: initial fixmap support
Needed to get fixed virtual address for USB debug and earlycon with mmio. Signed-off-by: Eric W. Biderman <ebiderman@xmisson.com> Signed-off-by: Yinghai Lu <yinghai.lu@sun.com> Cc: Andi Kleen <ak@suse.de> Cc: Bjorn Helgaas <bjorn.helgaas@hp.com> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Gerd Hoffmann <kraxel@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/kernel/head.S15
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/head.S b/arch/x86_64/kernel/head.S
index 1fab487dee86..941c84baecc8 100644
--- a/arch/x86_64/kernel/head.S
+++ b/arch/x86_64/kernel/head.S
@@ -73,7 +73,11 @@ startup_64:
73 addq %rbp, init_level4_pgt + (511*8)(%rip) 73 addq %rbp, init_level4_pgt + (511*8)(%rip)
74 74
75 addq %rbp, level3_ident_pgt + 0(%rip) 75 addq %rbp, level3_ident_pgt + 0(%rip)
76
76 addq %rbp, level3_kernel_pgt + (510*8)(%rip) 77 addq %rbp, level3_kernel_pgt + (510*8)(%rip)
78 addq %rbp, level3_kernel_pgt + (511*8)(%rip)
79
80 addq %rbp, level2_fixmap_pgt + (506*8)(%rip)
77 81
78 /* Add an Identity mapping if I am above 1G */ 82 /* Add an Identity mapping if I am above 1G */
79 leaq _text(%rip), %rdi 83 leaq _text(%rip), %rdi
@@ -314,7 +318,16 @@ NEXT_PAGE(level3_kernel_pgt)
314 .fill 510,8,0 318 .fill 510,8,0
315 /* (2^48-(2*1024*1024*1024)-((2^39)*511))/(2^30) = 510 */ 319 /* (2^48-(2*1024*1024*1024)-((2^39)*511))/(2^30) = 510 */
316 .quad level2_kernel_pgt - __START_KERNEL_map + _KERNPG_TABLE 320 .quad level2_kernel_pgt - __START_KERNEL_map + _KERNPG_TABLE
317 .fill 1,8,0 321 .quad level2_fixmap_pgt - __START_KERNEL_map + _PAGE_TABLE
322
323NEXT_PAGE(level2_fixmap_pgt)
324 .fill 506,8,0
325 .quad level1_fixmap_pgt - __START_KERNEL_map + _PAGE_TABLE
326 /* 8MB reserved for vsyscalls + a 2MB hole = 4 + 1 entries */
327 .fill 5,8,0
328
329NEXT_PAGE(level1_fixmap_pgt)
330 .fill 512,8,0
318 331
319NEXT_PAGE(level2_ident_pgt) 332NEXT_PAGE(level2_ident_pgt)
320 /* Since I easily can, map the first 1G. 333 /* Since I easily can, map the first 1G.