diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-05-18 05:54:43 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-18 05:54:43 -0400 |
commit | b4ef290d7c3abd1bf8cefcf8def359537fda7f31 (patch) | |
tree | f3e270923fa36c773eee3bb1f9981aab1711d938 /arch/x86/mm | |
parent | 77b52b4c5c66175553ee59eb43f74366f1e54bde (diff) | |
parent | f26a3988917913b3d11b2bd741601a2c64ab9204 (diff) |
Merge branch 'linus' into x86/pat
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/init_32.c | 12 | ||||
-rw-r--r-- | arch/x86/mm/pat.c | 4 |
2 files changed, 3 insertions, 13 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index de236e419cb5..ec30d10154b6 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -438,8 +438,6 @@ void zap_low_mappings(void) | |||
438 | { | 438 | { |
439 | int i; | 439 | int i; |
440 | 440 | ||
441 | save_pg_dir(); | ||
442 | |||
443 | /* | 441 | /* |
444 | * Zap initial low-memory mappings. | 442 | * Zap initial low-memory mappings. |
445 | * | 443 | * |
@@ -663,16 +661,8 @@ void __init mem_init(void) | |||
663 | test_wp_bit(); | 661 | test_wp_bit(); |
664 | 662 | ||
665 | cpa_init(); | 663 | cpa_init(); |
666 | 664 | save_pg_dir(); | |
667 | /* | ||
668 | * Subtle. SMP is doing it's boot stuff late (because it has to | ||
669 | * fork idle threads) - but it also needs low mappings for the | ||
670 | * protected-mode entry to work. We zap these entries only after | ||
671 | * the WP-bit has been tested. | ||
672 | */ | ||
673 | #ifndef CONFIG_SMP | ||
674 | zap_low_mappings(); | 665 | zap_low_mappings(); |
675 | #endif | ||
676 | } | 666 | } |
677 | 667 | ||
678 | #ifdef CONFIG_MEMORY_HOTPLUG | 668 | #ifdef CONFIG_MEMORY_HOTPLUG |
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index 1a82f4db8a46..c0d5680d5f3c 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c | |||
@@ -568,7 +568,7 @@ int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn, | |||
568 | "%s:%d /dev/mem ioremap_change_attr failed %s for %Lx-%Lx\n", | 568 | "%s:%d /dev/mem ioremap_change_attr failed %s for %Lx-%Lx\n", |
569 | current->comm, current->pid, | 569 | current->comm, current->pid, |
570 | cattr_name(flags), | 570 | cattr_name(flags), |
571 | offset, offset + size); | 571 | offset, (unsigned long long)(offset + size)); |
572 | return 0; | 572 | return 0; |
573 | } | 573 | } |
574 | 574 | ||
@@ -589,7 +589,7 @@ void map_devmem(unsigned long pfn, unsigned long size, pgprot_t vma_prot) | |||
589 | "%s:%d /dev/mem expected mapping type %s for %Lx-%Lx, got %s\n", | 589 | "%s:%d /dev/mem expected mapping type %s for %Lx-%Lx, got %s\n", |
590 | current->comm, current->pid, | 590 | current->comm, current->pid, |
591 | cattr_name(want_flags), | 591 | cattr_name(want_flags), |
592 | addr, addr + size, | 592 | addr, (unsigned long long)(addr + size), |
593 | cattr_name(flags)); | 593 | cattr_name(flags)); |
594 | } | 594 | } |
595 | } | 595 | } |