Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27510235 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

powerpc/64: Correct comment on LOAD_HANDLER()



The comment for LOAD_HANDLER() was wrong. The part about kdump has not
been true since 1f6a93e4 ("powerpc: Make it possible to move the
interrupt handlers away from the kernel").

Describe how it currently works, and combine the two separate comments
into one.

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Reviewed-by: default avatarNick Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent f0f558b1
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -84,12 +84,12 @@


/*
/*
 * We're short on space and time in the exception prolog, so we can't
 * We're short on space and time in the exception prolog, so we can't
 * use the normal SET_REG_IMMEDIATE macro. Normally we just need the
 * use the normal LOAD_REG_IMMEDIATE macro to load the address of label.
 * low halfword of the address, but for Kdump we need the whole low
 * Instead we get the base of the kernel from paca->kernelbase and or in the low
 * word.
 * part of label. This requires that the label be within 64KB of kernelbase, and
 * that kernelbase be 64K aligned.
 */
 */
#define LOAD_HANDLER(reg, label)					\
#define LOAD_HANDLER(reg, label)					\
	/* Handlers must be within 64K of kbase, which must be 64k aligned */ \
	ori	reg,reg,(label)-_stext;	/* virt addr of handler ... */
	ori	reg,reg,(label)-_stext;	/* virt addr of handler ... */


/* Exception register prefixes */
/* Exception register prefixes */