From: Ard Biesheuvel <ardb@kernel.org>
To: linux-efi@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
Ard Biesheuvel <ardb@kernel.org>,
Maxim Uvarov <maxim.uvarov@linaro.org>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Atish Patra <atish.patra@wdc.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Jens Wiklander <jens.wiklander@linaro.org>,
Francois Ozog <francois.ozog@linaro.org>,
Etienne CARRIERE <etienne.carriere@st.com>,
Takahiro Akashi <takahiro.akashi@linaro.org>,
Patrice CHOTARD <patrice.chotard@st.com>,
Sumit Garg <sumit.garg@linaro.org>,
Grant Likely <Grant.Likely@arm.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Christophe Priouzeau <christophe.priouzeau@linaro.org>,
Rouven Czerwinski <r.czerwinski@pengutronix.de>,
Patrick DELAUNAY <patrick.delaunay@st.com>
Subject: [PATCH RFC/RFT 1/3] efi/libstub: Export efi_low_alloc_above() to other units
Date: Wed, 9 Sep 2020 18:16:21 +0300 [thread overview]
Message-ID: <20200909151623.16153-2-ardb@kernel.org> (raw)
In-Reply-To: <20200909151623.16153-1-ardb@kernel.org>
Permit arm32-stub.c to access efi_low_alloc_above() in a subsequent
patch by giving it external linkage and declaring it in efistub.h.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
drivers/firmware/efi/libstub/efistub.h | 3 +++
drivers/firmware/efi/libstub/relocate.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/firmware/efi/libstub/efistub.h b/drivers/firmware/efi/libstub/efistub.h
index 85050f5a1b28..158f86f1f9fc 100644
--- a/drivers/firmware/efi/libstub/efistub.h
+++ b/drivers/firmware/efi/libstub/efistub.h
@@ -740,6 +740,9 @@ efi_status_t efi_allocate_pages(unsigned long size, unsigned long *addr,
efi_status_t efi_allocate_pages_aligned(unsigned long size, unsigned long *addr,
unsigned long max, unsigned long align);
+efi_status_t efi_low_alloc_above(unsigned long size, unsigned long align,
+ unsigned long *addr, unsigned long min);
+
efi_status_t efi_relocate_kernel(unsigned long *image_addr,
unsigned long image_size,
unsigned long alloc_size,
diff --git a/drivers/firmware/efi/libstub/relocate.c b/drivers/firmware/efi/libstub/relocate.c
index 9b1aaf8b123f..8ee9eb2b9039 100644
--- a/drivers/firmware/efi/libstub/relocate.c
+++ b/drivers/firmware/efi/libstub/relocate.c
@@ -20,8 +20,8 @@
*
* Return: status code
*/
-static efi_status_t efi_low_alloc_above(unsigned long size, unsigned long align,
- unsigned long *addr, unsigned long min)
+efi_status_t efi_low_alloc_above(unsigned long size, unsigned long align,
+ unsigned long *addr, unsigned long min)
{
unsigned long map_size, desc_size, buff_size;
efi_memory_desc_t *map;
--
2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: Ard Biesheuvel <ardb@kernel.org>
To: linux-efi@vger.kernel.org
Cc: Etienne CARRIERE <etienne.carriere@st.com>,
Francois Ozog <francois.ozog@linaro.org>,
Maxim Uvarov <maxim.uvarov@linaro.org>,
Rouven Czerwinski <r.czerwinski@pengutronix.de>,
Takahiro Akashi <takahiro.akashi@linaro.org>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Patrice CHOTARD <patrice.chotard@st.com>,
Patrick DELAUNAY <patrick.delaunay@st.com>,
Jens Wiklander <jens.wiklander@linaro.org>,
Atish Patra <atish.patra@wdc.com>,
Grant Likely <Grant.Likely@arm.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Christophe Priouzeau <christophe.priouzeau@linaro.org>,
Ard Biesheuvel <ardb@kernel.org>,
linux-arm-kernel@lists.infradead.org,
Sumit Garg <sumit.garg@linaro.org>
Subject: [PATCH RFC/RFT 1/3] efi/libstub: Export efi_low_alloc_above() to other units
Date: Wed, 9 Sep 2020 18:16:21 +0300 [thread overview]
Message-ID: <20200909151623.16153-2-ardb@kernel.org> (raw)
In-Reply-To: <20200909151623.16153-1-ardb@kernel.org>
Permit arm32-stub.c to access efi_low_alloc_above() in a subsequent
patch by giving it external linkage and declaring it in efistub.h.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
drivers/firmware/efi/libstub/efistub.h | 3 +++
drivers/firmware/efi/libstub/relocate.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/firmware/efi/libstub/efistub.h b/drivers/firmware/efi/libstub/efistub.h
index 85050f5a1b28..158f86f1f9fc 100644
--- a/drivers/firmware/efi/libstub/efistub.h
+++ b/drivers/firmware/efi/libstub/efistub.h
@@ -740,6 +740,9 @@ efi_status_t efi_allocate_pages(unsigned long size, unsigned long *addr,
efi_status_t efi_allocate_pages_aligned(unsigned long size, unsigned long *addr,
unsigned long max, unsigned long align);
+efi_status_t efi_low_alloc_above(unsigned long size, unsigned long align,
+ unsigned long *addr, unsigned long min);
+
efi_status_t efi_relocate_kernel(unsigned long *image_addr,
unsigned long image_size,
unsigned long alloc_size,
diff --git a/drivers/firmware/efi/libstub/relocate.c b/drivers/firmware/efi/libstub/relocate.c
index 9b1aaf8b123f..8ee9eb2b9039 100644
--- a/drivers/firmware/efi/libstub/relocate.c
+++ b/drivers/firmware/efi/libstub/relocate.c
@@ -20,8 +20,8 @@
*
* Return: status code
*/
-static efi_status_t efi_low_alloc_above(unsigned long size, unsigned long align,
- unsigned long *addr, unsigned long min)
+efi_status_t efi_low_alloc_above(unsigned long size, unsigned long align,
+ unsigned long *addr, unsigned long min)
{
unsigned long map_size, desc_size, buff_size;
efi_memory_desc_t *map;
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-09-09 17:19 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-09 15:16 [PATCH RFC/RFT 0/3] efi/libstub: arm32: Remove dependency on dram_base Ard Biesheuvel
2020-09-09 15:16 ` Ard Biesheuvel
2020-09-09 15:16 ` Ard Biesheuvel [this message]
2020-09-09 15:16 ` [PATCH RFC/RFT 1/3] efi/libstub: Export efi_low_alloc_above() to other units Ard Biesheuvel
2020-09-09 15:16 ` [PATCH RFC/RFT 2/3] efi/libstub: Use low allocation for the uncompressed kernel Ard Biesheuvel
2020-09-09 15:16 ` Ard Biesheuvel
2020-09-09 15:16 ` [PATCH RFC/RFT 3/3] efi/libstub: base FDT and initrd placement on image address not DRAM base Ard Biesheuvel
2020-09-09 15:16 ` Ard Biesheuvel
2020-09-09 15:25 ` [PATCH RFC/RFT 0/3] efi/libstub: arm32: Remove dependency on dram_base Grant Likely
2020-09-09 15:25 ` Grant Likely
2020-09-09 15:30 ` Ard Biesheuvel
2020-09-09 15:30 ` Ard Biesheuvel
2020-09-09 20:52 ` Palmer Dabbelt
2020-09-09 20:52 ` Palmer Dabbelt
2020-09-09 21:44 ` Atish Patra
2020-09-09 21:44 ` Atish Patra
2020-09-10 1:34 ` Atish Patra
2020-09-10 1:34 ` Atish Patra
2020-09-10 10:04 ` Ard Biesheuvel
2020-09-10 10:04 ` Ard Biesheuvel
2020-09-10 14:08 ` Ard Biesheuvel
2020-09-10 14:08 ` Ard Biesheuvel
2020-09-10 23:32 ` Atish Patra
2020-09-10 23:32 ` Atish Patra
2020-09-11 2:16 ` Palmer Dabbelt
2020-09-11 2:16 ` Palmer Dabbelt
2020-09-11 7:56 ` Ard Biesheuvel
2020-09-11 7:56 ` Ard Biesheuvel
2020-09-11 10:27 ` Maxim Uvarov
2020-09-11 10:27 ` Maxim Uvarov
2020-09-11 18:45 ` Ard Biesheuvel
2020-09-11 18:45 ` Ard Biesheuvel
2020-09-16 15:43 ` Maxim Uvarov
2020-09-16 15:43 ` Maxim Uvarov
2020-09-16 15:58 ` Ard Biesheuvel
2020-09-16 15:58 ` Ard Biesheuvel
2020-09-16 16:02 ` Ard Biesheuvel
2020-09-16 16:02 ` Ard Biesheuvel
2020-09-16 22:01 ` Atish Patra
2020-09-16 22:01 ` Atish Patra
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=20200909151623.16153-2-ardb@kernel.org \
--to=ardb@kernel.org \
--cc=Grant.Likely@arm.com \
--cc=atish.patra@wdc.com \
--cc=christophe.priouzeau@linaro.org \
--cc=etienne.carriere@st.com \
--cc=francois.ozog@linaro.org \
--cc=ilias.apalodimas@linaro.org \
--cc=jens.wiklander@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-efi@vger.kernel.org \
--cc=maxim.uvarov@linaro.org \
--cc=palmer@dabbelt.com \
--cc=patrice.chotard@st.com \
--cc=patrick.delaunay@st.com \
--cc=r.czerwinski@pengutronix.de \
--cc=sumit.garg@linaro.org \
--cc=takahiro.akashi@linaro.org \
--cc=xypron.glpk@gmx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.