original_kernel/include
David S. Miller bff06d5522 [SPARC64]: Rewrite bootup sequence.
Instead of all of this cpu-specific code to remap the kernel
to the correct location, use portable firmware calls to do
this instead.

What we do now is the following in position independant
assembler:

	chosen_node = prom_finddevice("/chosen");
	prom_mmu_ihandle_cache = prom_getint(chosen_node, "mmu");
	vaddr = 4MB_ALIGN(current_text_addr());
	prom_translate(vaddr, &paddr_high, &paddr_low, &mode);
	prom_boot_mapping_mode = mode;
	prom_boot_mapping_phys_high = paddr_high;
	prom_boot_mapping_phys_low = paddr_low;
	prom_map(-1, 8 * 1024 * 1024, KERNBASE, paddr_low);

and that replaces the massive amount of by-hand TLB probing and
programming we used to do here.

The new code should also handle properly the case where the kernel
is mapped at the correct address already (think: future kexec
support).

Consequently, the bulk of remap_kernel() dies as does the entirety
of arch/sparc64/prom/map.S

We try to share some strings in the PROM library with the ones used
at bootup, and while we're here mark input strings to oplib.h routines
with "const" when appropriate.

There are many more simplifications now possible.  For one thing, we
can consolidate the two copies we now have of a lot of cpu setup code
sitting in head.S and trampoline.S.

This is a significant step towards CONFIG_DEBUG_PAGEALLOC support.

Signed-off-by: David S. Miller <davem@davemloft.net>
2005-09-22 20:11:33 -07:00
..
acpi
asm-alpha [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-arm [ARM] 2927/1: .arch.info - postfix section with .init for `make buildcheck` 2005-09-20 16:45:20 +01:00
asm-arm26 [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-cris [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-frv [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-generic
asm-h8300 [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-i386 [PATCH] uml: adapt asm/futex.h to our arch 2005-09-21 16:16:29 -07:00
asm-ia64 [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-m32r [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-m68k [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-m68knommu [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-mips
asm-parisc [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-powerpc
asm-ppc [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-ppc64
asm-s390 [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-sh [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-sh64 [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-sparc [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-sparc64 [SPARC64]: Rewrite bootup sequence. 2005-09-22 20:11:33 -07:00
asm-um [PATCH] uml: adapt asm/futex.h to our arch 2005-09-21 16:16:29 -07:00
asm-v850 [PATCH] Remove unused var from asm/futex.h 2005-09-21 16:16:29 -07:00
asm-x86_64 [PATCH] x86_64: desc.h-needs smp.h 2005-09-17 11:50:01 -07:00
asm-xtensa
linux [PATCH] Adds sys_set_mempolicy() in include/linux/syscalls.h 2005-09-21 10:12:18 -07:00
math-emu
media
mtd
net
pcmcia
rdma [IB] Add MAD data field size definitions 2005-09-21 12:31:26 -07:00
rxrpc
scsi [SCSI] Fix thread termination for the SCSI error handle 2005-09-19 09:50:04 -05:00
sound
video