diff options
author | Paul Mackerras <paulus@samba.org> | 2006-01-15 01:30:44 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-15 01:30:44 -0500 |
commit | a7fdd90bc43e3e9cb08bc1b13650024d419b89e5 (patch) | |
tree | 5c99a41b9d157186668ed63c001f72a09965143b /arch/ppc/mm | |
parent | e8625d463560198cff7cb3eb22886c47d728d501 (diff) |
[PATCH] ppc: Remove powermac support from ARCH=ppc
This makes it possible to build kernels for PReP and/or CHRP
with ARCH=ppc by removing the (non-building) powermac support.
It's now also possible to select PReP and CHRP independently.
Powermac users should now build with ARCH=powerpc instead of
ARCH=ppc. (This does mean that it is no longer possible to
build a 32-bit kernel for a G5.)
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/mm')
-rw-r--r-- | arch/ppc/mm/init.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/ppc/mm/init.c b/arch/ppc/mm/init.c index 45f0782059f..134db5c0420 100644 --- a/arch/ppc/mm/init.c +++ b/arch/ppc/mm/init.c | |||
@@ -67,10 +67,6 @@ unsigned long ppc_memoffset = PAGE_OFFSET; | |||
67 | int mem_init_done; | 67 | int mem_init_done; |
68 | int init_bootmem_done; | 68 | int init_bootmem_done; |
69 | int boot_mapsize; | 69 | int boot_mapsize; |
70 | #ifdef CONFIG_PPC_PMAC | ||
71 | unsigned long agp_special_page; | ||
72 | EXPORT_SYMBOL(agp_special_page); | ||
73 | #endif | ||
74 | 70 | ||
75 | extern char _end[]; | 71 | extern char _end[]; |
76 | extern char etext[], _stext[]; | 72 | extern char etext[], _stext[]; |
@@ -424,10 +420,6 @@ void __init mem_init(void) | |||
424 | addr += PAGE_SIZE) | 420 | addr += PAGE_SIZE) |
425 | SetPageReserved(virt_to_page(addr)); | 421 | SetPageReserved(virt_to_page(addr)); |
426 | #endif | 422 | #endif |
427 | #ifdef CONFIG_PPC_PMAC | ||
428 | if (agp_special_page) | ||
429 | SetPageReserved(virt_to_page(agp_special_page)); | ||
430 | #endif | ||
431 | for (addr = PAGE_OFFSET; addr < (unsigned long)high_memory; | 423 | for (addr = PAGE_OFFSET; addr < (unsigned long)high_memory; |
432 | addr += PAGE_SIZE) { | 424 | addr += PAGE_SIZE) { |
433 | if (!PageReserved(virt_to_page(addr))) | 425 | if (!PageReserved(virt_to_page(addr))) |
@@ -463,11 +455,6 @@ void __init mem_init(void) | |||
463 | initpages<< (PAGE_SHIFT-10), | 455 | initpages<< (PAGE_SHIFT-10), |
464 | (unsigned long) (totalhigh_pages << (PAGE_SHIFT-10))); | 456 | (unsigned long) (totalhigh_pages << (PAGE_SHIFT-10))); |
465 | 457 | ||
466 | #ifdef CONFIG_PPC_PMAC | ||
467 | if (agp_special_page) | ||
468 | printk(KERN_INFO "AGP special page: 0x%08lx\n", agp_special_page); | ||
469 | #endif | ||
470 | |||
471 | mem_init_done = 1; | 458 | mem_init_done = 1; |
472 | } | 459 | } |
473 | 460 | ||
@@ -512,22 +499,6 @@ set_phys_avail(unsigned long total_memory) | |||
512 | if (rtas_data) | 499 | if (rtas_data) |
513 | mem_pieces_remove(&phys_avail, rtas_data, rtas_size, 1); | 500 | mem_pieces_remove(&phys_avail, rtas_data, rtas_size, 1); |
514 | #endif | 501 | #endif |
515 | #ifdef CONFIG_PPC_PMAC | ||
516 | /* Because of some uninorth weirdness, we need a page of | ||
517 | * memory as high as possible (it must be outside of the | ||
518 | * bus address seen as the AGP aperture). It will be used | ||
519 | * by the r128 DRM driver | ||
520 | * | ||
521 | * FIXME: We need to make sure that page doesn't overlap any of the\ | ||
522 | * above. This could be done by improving mem_pieces_find to be able | ||
523 | * to do a backward search from the end of the list. | ||
524 | */ | ||
525 | if (_machine == _MACH_Pmac && find_devices("uni-north-agp")) { | ||
526 | agp_special_page = (total_memory - PAGE_SIZE); | ||
527 | mem_pieces_remove(&phys_avail, agp_special_page, PAGE_SIZE, 0); | ||
528 | agp_special_page = (unsigned long)__va(agp_special_page); | ||
529 | } | ||
530 | #endif /* CONFIG_PPC_PMAC */ | ||
531 | } | 502 | } |
532 | 503 | ||
533 | /* Mark some memory as reserved by removing it from phys_avail. */ | 504 | /* Mark some memory as reserved by removing it from phys_avail. */ |