linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: linuxppc-dev@lists.ozlabs.org
Subject: [RFC PATCH 10/11] powerpc/prom_init: Move __prombss to it's own section and store it in .bss
Date: Thu, 31 May 2018 14:33:48 +1000	[thread overview]
Message-ID: <20180531043349.24783-11-benh@kernel.crashing.org> (raw)
In-Reply-To: <20180531043349.24783-1-benh@kernel.crashing.org>

This makes __prombss its own section, and for now store
it in .bss.

This will give us the ability later to store it elsewhere
and/or free it after boot (it's about 8KB).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 arch/powerpc/kernel/prom_init.c   | 2 +-
 arch/powerpc/kernel/vmlinux.lds.S | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index f54177a84dbc..8c39f6bb8ee3 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -49,7 +49,7 @@
 #include <linux/linux_logo.h>
 
 /* All of prom_init bss lives here */
-#define __prombss __initdata
+#define __prombss __section(.bss.prominit)
 
 /*
  * Eventually bump that one up
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index b8d82678f8b4..c3254d978e34 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -4,6 +4,9 @@
 #else
 #define PROVIDE32(x)	PROVIDE(x)
 #endif
+
+#define BSS_FIRST_SECTIONS *(.bss.prominit)
+
 #include <asm/page.h>
 #include <asm-generic/vmlinux.lds.h>
 #include <asm/cache.h>
-- 
2.17.0

  parent reply	other threads:[~2018-05-31  4:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-31  4:33 Benjamin Herrenschmidt
2018-05-31  4:33 ` [RFC PATCH 01/11] powerpc/prom_init: Make of_workarounds static Benjamin Herrenschmidt
2018-10-12 13:56   ` Michael Ellerman
2018-10-15  4:00   ` [RFC,01/11] " Michael Ellerman
2018-05-31  4:33 ` [RFC PATCH 02/11] powerpc/prom_init: Make "fake_elf" const Benjamin Herrenschmidt
2018-10-15  4:00   ` [RFC,02/11] " Michael Ellerman
2018-05-31  4:33 ` [RFC PATCH 03/11] powerpc/prom_init: Make "default_colors" const Benjamin Herrenschmidt
2018-10-15  4:00   ` [RFC,03/11] " Michael Ellerman
2018-05-31  4:33 ` [RFC PATCH 04/11] powerpc/prom_init: Replace __initdata with __prombss when applicable Benjamin Herrenschmidt
2018-05-31  4:33 ` [RFC PATCH 05/11] powerpc/prom_init: Remove support for OPAL v2 Benjamin Herrenschmidt
2018-05-31  4:33 ` [RFC PATCH 06/11] powerpc/prom_init: Move prom_radix_disable to __prombss Benjamin Herrenschmidt
2018-05-31  4:33 ` [RFC PATCH 07/11] powerpc/prom_init: Move ibm_arch_vec " Benjamin Herrenschmidt
2018-05-31  4:33 ` [RFC PATCH 08/11] powerpc/prom_init: Move const structures to __initconst Benjamin Herrenschmidt
2018-05-31  4:33 ` [RFC PATCH 09/11] powerpc/prom_init: Move a few remaining statics to appropriate sections Benjamin Herrenschmidt
2018-05-31  4:33 ` Benjamin Herrenschmidt [this message]
2018-05-31  4:33 ` [RFC PATCH 11/11] powerpc: Check prom_init for disallowed sections Benjamin Herrenschmidt

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=20180531043349.24783-11-benh@kernel.crashing.org \
    --to=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.ozlabs.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;
as well as URLs for NNTP newsgroup(s).