From: James Hogan <james.hogan@imgtec.com>
To: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>, <linux-mips@linux-mips.org>,
"Andrew Bresticker" <abrestic@chromium.org>,
<linux-kernel@vger.kernel.org>, "Jonas Gorski" <jogo@openwrt.org>
Subject: Re: [PATCH] MIPS: Pistachio: Enable KASLR
Date: Wed, 25 May 2016 11:56:10 +0100 [thread overview]
Message-ID: <20160525105610.GP1124@jhogan-linux.le.imgtec.org> (raw)
In-Reply-To: <1464173387-16847-1-git-send-email-matt.redfearn@imgtec.com>
[-- Attachment #1: Type: text/plain, Size: 1628 bytes --]
On Wed, May 25, 2016 at 11:49:47AM +0100, Matt Redfearn wrote:
> Allow KASLR to be selected on Pistachio based systems. Tested on a
> Creator Ci40.
>
> Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
>
> ---
>
> arch/mips/Kconfig | 1 +
> arch/mips/pistachio/init.c | 8 ++++++--
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index c5bedce4122d..f1e59cbf5fe4 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -398,6 +398,7 @@ config MACH_PISTACHIO
> select SYS_SUPPORTS_MIPS_CPS
> select SYS_SUPPORTS_MULTITHREADING
> select SYS_SUPPORTS_ZBOOT
> + select SYS_SUPPORTS_RELOCATABLE
This list is (mostly) already sorted, so probably best to add this
before SYS_SUPPORTS_ZBOOT.
Other than that,
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cheers
James
> select SYS_HAS_EARLY_PRINTK
> select USE_GENERIC_EARLY_PRINTK_8250
> select USE_OF
> diff --git a/arch/mips/pistachio/init.c b/arch/mips/pistachio/init.c
> index 96ba2cc9ad3e..95f8767ce52e 100644
> --- a/arch/mips/pistachio/init.c
> +++ b/arch/mips/pistachio/init.c
> @@ -52,12 +52,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();
> }
> --
> 2.5.0
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2016-05-25 10:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-25 10:49 Matt Redfearn
2016-05-25 10:56 ` James Hogan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160525105610.GP1124@jhogan-linux.le.imgtec.org \
--to=james.hogan@imgtec.com \
--cc=abrestic@chromium.org \
--cc=jogo@openwrt.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=matt.redfearn@imgtec.com \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®