mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/3]i386: early init pgt for fix virtual addr in head.S
@ 2007-05-21  5:19 Yinghai Lu
  2007-06-01 19:17 ` Eric W. Biederman
  0 siblings, 1 reply; 6+ messages in thread
From: Yinghai Lu @ 2007-05-21  5:19 UTC (permalink / raw)
  To: Andi Kleen, Andrew Morton, Eric W. Biederman, Greg KH,
	Bjorn Helgaas, Vivek Goyal
  Cc: linux kernel mailing list

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

early init pgt for fix virtual addr in head.S, so can use set_fixmap
before setup_arch.
otherwise set_fixmap_nocache will not work for i386

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

[-- Attachment #2: head_s_init_fix_i386.diff --]
[-- Type: text/x-patch, Size: 727 bytes --]

diff --git a/arch/i386/kernel/head.S b/arch/i386/kernel/head.S
index f74dfc4..2d37850 100644
--- a/arch/i386/kernel/head.S
+++ b/arch/i386/kernel/head.S
@@ -168,6 +168,12 @@ page_pde_offset = (__PAGE_OFFSET >> 20);
 .section .init.text,"ax",@progbits
 #endif
 
+	/* Do an early initialization of the fixmap area */
+	movl $(swapper_pg_dir - __PAGE_OFFSET), %edx
+	movl $(swapper_pg_pmd - __PAGE_OFFSET), %eax
+	addl $0x007, %eax			/* 0x007 = PRESENT+RW+USER */
+	movl %eax, 4092(%edx)
+
 #ifdef CONFIG_SMP
 ENTRY(startup_32_smp)
 	cld
@@ -507,6 +513,8 @@ ENTRY(_stext)
 .section ".bss.page_aligned","w"
 ENTRY(swapper_pg_dir)
 	.fill 1024,4,0
+ENTRY(swapper_pg_pmd)
+	.fill 1024,4,0	
 ENTRY(empty_zero_page)
 	.fill 4096,1,0
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-01 22:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-21  5:19 [PATCH 2/3]i386: early init pgt for fix virtual addr in head.S Yinghai Lu
2007-06-01 19:17 ` Eric W. Biederman
2007-06-01 19:46   ` Yinghai Lu
2007-06-01 20:34     ` Eric W. Biederman
2007-06-01 21:56       ` Yinghai Lu
2007-06-01 22:27         ` Yinghai Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®