diff options
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r-- | arch/arm/mm/mmu.c | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 6a08087ab022..ddb1bee6de73 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -827,9 +827,9 @@ static inline void prepare_page_table(void) | |||
827 | } | 827 | } |
828 | 828 | ||
829 | /* | 829 | /* |
830 | * Reserve the various regions of node 0 | 830 | * Reserve the various regions |
831 | */ | 831 | */ |
832 | void __init reserve_node_zero(pg_data_t *pgdat) | 832 | void __init reserve_special_regions(void) |
833 | { | 833 | { |
834 | unsigned long res_size = 0; | 834 | unsigned long res_size = 0; |
835 | 835 | ||
@@ -838,19 +838,17 @@ void __init reserve_node_zero(pg_data_t *pgdat) | |||
838 | * Note that this can only be in node 0. | 838 | * Note that this can only be in node 0. |
839 | */ | 839 | */ |
840 | #ifdef CONFIG_XIP_KERNEL | 840 | #ifdef CONFIG_XIP_KERNEL |
841 | reserve_bootmem_node(pgdat, __pa(_data), _end - _data, | 841 | reserve_bootmem(__pa(_data), _end - _data, BOOTMEM_DEFAULT); |
842 | BOOTMEM_DEFAULT); | ||
843 | #else | 842 | #else |
844 | reserve_bootmem_node(pgdat, __pa(_stext), _end - _stext, | 843 | reserve_bootmem(__pa(_stext), _end - _stext, BOOTMEM_DEFAULT); |
845 | BOOTMEM_DEFAULT); | ||
846 | #endif | 844 | #endif |
847 | 845 | ||
848 | /* | 846 | /* |
849 | * Reserve the page tables. These are already in use, | 847 | * Reserve the page tables. These are already in use, |
850 | * and can only be in node 0. | 848 | * and can only be in node 0. |
851 | */ | 849 | */ |
852 | reserve_bootmem_node(pgdat, __pa(swapper_pg_dir), | 850 | reserve_bootmem(__pa(swapper_pg_dir), |
853 | PTRS_PER_PGD * sizeof(pgd_t), BOOTMEM_DEFAULT); | 851 | PTRS_PER_PGD * sizeof(pgd_t), BOOTMEM_DEFAULT); |
854 | 852 | ||
855 | /* | 853 | /* |
856 | * Hmm... This should go elsewhere, but we really really need to | 854 | * Hmm... This should go elsewhere, but we really really need to |
@@ -874,29 +872,22 @@ void __init reserve_node_zero(pg_data_t *pgdat) | |||
874 | 872 | ||
875 | if (machine_is_h1940() || machine_is_rx3715() | 873 | if (machine_is_h1940() || machine_is_rx3715() |
876 | || machine_is_rx1950()) { | 874 | || machine_is_rx1950()) { |
877 | reserve_bootmem_node(pgdat, 0x30003000, 0x1000, | 875 | reserve_bootmem(0x30003000, 0x1000, BOOTMEM_DEFAULT); |
878 | BOOTMEM_DEFAULT); | 876 | reserve_bootmem(0x30081000, 0x1000, BOOTMEM_DEFAULT); |
879 | reserve_bootmem_node(pgdat, 0x30081000, 0x1000, | ||
880 | BOOTMEM_DEFAULT); | ||
881 | } | 877 | } |
882 | 878 | ||
883 | if (machine_is_palmld() || machine_is_palmtx()) { | 879 | if (machine_is_palmld() || machine_is_palmtx()) { |
884 | reserve_bootmem_node(pgdat, 0xa0000000, 0x1000, | 880 | reserve_bootmem(0xa0000000, 0x1000, BOOTMEM_EXCLUSIVE); |
885 | BOOTMEM_EXCLUSIVE); | 881 | reserve_bootmem(0xa0200000, 0x1000, BOOTMEM_EXCLUSIVE); |
886 | reserve_bootmem_node(pgdat, 0xa0200000, 0x1000, | ||
887 | BOOTMEM_EXCLUSIVE); | ||
888 | } | 882 | } |
889 | 883 | ||
890 | if (machine_is_treo680() || machine_is_centro()) { | 884 | if (machine_is_treo680() || machine_is_centro()) { |
891 | reserve_bootmem_node(pgdat, 0xa0000000, 0x1000, | 885 | reserve_bootmem(0xa0000000, 0x1000, BOOTMEM_EXCLUSIVE); |
892 | BOOTMEM_EXCLUSIVE); | 886 | reserve_bootmem(0xa2000000, 0x1000, BOOTMEM_EXCLUSIVE); |
893 | reserve_bootmem_node(pgdat, 0xa2000000, 0x1000, | ||
894 | BOOTMEM_EXCLUSIVE); | ||
895 | } | 887 | } |
896 | 888 | ||
897 | if (machine_is_palmt5()) | 889 | if (machine_is_palmt5()) |
898 | reserve_bootmem_node(pgdat, 0xa0200000, 0x1000, | 890 | reserve_bootmem(0xa0200000, 0x1000, BOOTMEM_EXCLUSIVE); |
899 | BOOTMEM_EXCLUSIVE); | ||
900 | 891 | ||
901 | /* | 892 | /* |
902 | * U300 - This platform family can share physical memory | 893 | * U300 - This platform family can share physical memory |
@@ -920,8 +911,7 @@ void __init reserve_node_zero(pg_data_t *pgdat) | |||
920 | res_size = __pa(swapper_pg_dir) - PHYS_OFFSET; | 911 | res_size = __pa(swapper_pg_dir) - PHYS_OFFSET; |
921 | #endif | 912 | #endif |
922 | if (res_size) | 913 | if (res_size) |
923 | reserve_bootmem_node(pgdat, PHYS_OFFSET, res_size, | 914 | reserve_bootmem(PHYS_OFFSET, res_size, BOOTMEM_DEFAULT); |
924 | BOOTMEM_DEFAULT); | ||
925 | } | 915 | } |
926 | 916 | ||
927 | /* | 917 | /* |