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

Commit 65b4ab65 authored by Stephen Boyd's avatar Stephen Boyd Committed by Kumar Gala
Browse files

ARM: qcom: scm: Clarify boot interface



The secure world only knows about 32-bit wide physical addresses
for the boot API. Clarify the kernel interface by explicitly
stating a u32 instead of phys_addr_t which could be 32 or 64 bits
depending on LPAE or not.

Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarKumar Gala <galak@codeaurora.org>
parent 0c2d9678
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -24,11 +24,11 @@
/*
 * Set the cold/warm boot address for one of the CPU cores.
 */
int scm_set_boot_addr(phys_addr_t addr, int flags)
int scm_set_boot_addr(u32 addr, int flags)
{
	struct {
		unsigned int flags;
		phys_addr_t  addr;
		u32 addr;
	} cmd;

	cmd.addr = addr;
+1 −1
Original line number Diff line number Diff line
@@ -21,6 +21,6 @@
#define SCM_FLAG_WARMBOOT_CPU2		0x10
#define SCM_FLAG_WARMBOOT_CPU3		0x40

int scm_set_boot_addr(phys_addr_t addr, int flags);
int scm_set_boot_addr(u32 addr, int flags);

#endif