[PATCH 10/12] ppc64: Reroute interrupts from zero + offset to KERNELBASE + offset

Stephen Rothwell sfr at canb.auug.org.au
Fri Aug 26 23:39:48 EST 2005


On Fri, 26 Aug 2005 12:53:31 +1000 (EST) Michael Ellerman <michael at ellerman.id.au> wrote:
>
> +static void setup_kdump_trampoline(void)
> +{
> +	unsigned long i;
> +	unsigned int *addr;
> +
> +	/* XXX this only works if PHYSICAL_START <= 32 MB */
> +
> +	for (i = 0x100; i < 0x3000; i += 8) {
> +		addr  = (unsigned int *)i;
> +		*addr++ = 0x60000000; /* nop */

This next should really have a comment ...

> +		*addr = 0x48000000 | ((PHYSICAL_START - 1) & 0x03fffffc);
> +
> +		asm ("dcbst 0,%0; sync; icbi 0,%0; isync" : : "r" (addr));

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20050826/fa3d9ea3/attachment.pgp 


More information about the Linuxppc64-dev mailing list