Skip to content

Commit

Permalink
MIPS: Pistachio: Enable KASLR
Browse files Browse the repository at this point in the history
Allow KASLR to be selected on Pistachio based systems. Tested on a
Creator Ci40.

Signed-off-by: Matt Redfearn <[email protected]>
Reviewed-by: James Hogan <[email protected]>
Cc: Andrew Bresticker <[email protected]>
Cc: Jonas Gorski <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/13356/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
mpredfearn authored and ralfbaechle committed May 28, 2016
1 parent aedcfbe commit 41cc07b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ config MACH_PISTACHIO
select SYS_SUPPORTS_LITTLE_ENDIAN
select SYS_SUPPORTS_MIPS_CPS
select SYS_SUPPORTS_MULTITHREADING
select SYS_SUPPORTS_RELOCATABLE
select SYS_SUPPORTS_ZBOOT
select SYS_HAS_EARLY_PRINTK
select USE_GENERIC_EARLY_PRINTK_8250
Expand Down
8 changes: 6 additions & 2 deletions arch/mips/pistachio/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ static void __init plat_setup_iocoherency(void)
}
}

void __init plat_mem_setup(void)
void __init *plat_get_fdt(void)
{
if (fw_arg0 != -2)
panic("Device-tree not present");
return (void *)fw_arg1;
}

__dt_setup_arch((void *)fw_arg1);
void __init plat_mem_setup(void)
{
__dt_setup_arch(plat_get_fdt());

plat_setup_iocoherency();
}
Expand Down

0 comments on commit 41cc07b

Please sign in to comment.