All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 12/63] x86: Add basic support for U-Boot as a 64-bit EFI application
Date: Mon, 19 Dec 2016 15:58:55 +0800	[thread overview]
Message-ID: <CAEUhbmU1DT9=_pt1AcLH-AdPpdxqqSADTxzYvg9Wphq+i9_-kg@mail.gmail.com> (raw)
In-Reply-To: <1479587152-25065-13-git-send-email-sjg@chromium.org>

Hi Simon,

On Sun, Nov 20, 2016 at 4:25 AM, Simon Glass <sjg@chromium.org> wrote:
> Add a link script and relocation code for building 64-bit EFI applications.
> This can be used for the EFI stub.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2: None
>
>  arch/x86/lib/elf_x86_64_efi.lds |  3 ++
>  arch/x86/lib/reloc_x86_64.c     | 90 +++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 93 insertions(+)
>  create mode 100644 arch/x86/lib/reloc_x86_64.c
>
> diff --git a/arch/x86/lib/elf_x86_64_efi.lds b/arch/x86/lib/elf_x86_64_efi.lds
> index 70c7c52..886ebef 100644
> --- a/arch/x86/lib/elf_x86_64_efi.lds
> +++ b/arch/x86/lib/elf_x86_64_efi.lds
> @@ -54,6 +54,9 @@ SECTIONS
>                 *(SORT(.u_boot_list*));
>                 . = ALIGN(8);
>                 *(.dtb*);
> +               /* Keep U-Boot payload */
> +               . = ALIGN(8);
> +               KEEP(*(.u_boot_bin.*));
>         }
>
>         . = ALIGN(4096);
> diff --git a/arch/x86/lib/reloc_x86_64.c b/arch/x86/lib/reloc_x86_64.c
> new file mode 100644
> index 0000000..70a2b2a
> --- /dev/null
> +++ b/arch/x86/lib/reloc_x86_64.c

reloc_x86_64.c is already in the mainline tree.

> @@ -0,0 +1,90 @@

[snip]

Regards,
Bin

  reply	other threads:[~2016-12-19  7:58 UTC|newest]

Thread overview: 135+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-19 20:24 [U-Boot] [PATCH v2 00/63] x86: Add initial support for 64-bit U-Boot Simon Glass
2016-11-19 20:24 ` [U-Boot] [PATCH v2 01/63] console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL Simon Glass
2016-12-19  7:25   ` Bin Meng
2016-11-19 20:24 ` [U-Boot] [PATCH v2 02/63] spl: spi: Add a debug message if loading fails Simon Glass
2016-11-21 18:27   ` Jagan Teki
2016-12-19  7:26   ` Bin Meng
2016-11-19 20:24 ` [U-Boot] [PATCH v2 03/63] spl: Makefile: Define SPL_ earlier Simon Glass
2016-12-19  7:26   ` Bin Meng
2016-12-19  7:43   ` Masahiro Yamada
2017-04-02 23:24     ` Simon Glass
2016-11-19 20:24 ` [U-Boot] [PATCH v2 04/63] spl: Allow CPU drivers to be used in SPL Simon Glass
2016-12-19  7:26   ` Bin Meng
2016-11-19 20:24 ` [U-Boot] [PATCH v2 05/63] spl: Allow PCI " Simon Glass
2016-12-19  7:26   ` Bin Meng
2016-11-19 20:24 ` [U-Boot] [PATCH v2 06/63] spl: Allow RTC " Simon Glass
2016-12-19  7:26   ` Bin Meng
2016-11-19 20:24 ` [U-Boot] [PATCH v2 07/63] spl: Allow timer " Simon Glass
2016-12-19  7:26   ` Bin Meng
2016-11-19 20:24 ` [U-Boot] [PATCH v2 08/63] spl: Allow PCH " Simon Glass
2016-12-19  7:26   ` Bin Meng
2016-11-19 20:24 ` [U-Boot] [PATCH v2 09/63] spl: Don't create a BSS padding when it is separate Simon Glass
2016-12-19  7:26   ` Bin Meng
2016-11-19 20:24 ` [U-Boot] [PATCH v2 10/63] x86: Use unsigned long for address in table generation Simon Glass
2016-12-20  3:34   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 11/63] WIP: x86: Update mpspec to build on 64-bit machines Simon Glass
2016-12-19  7:58   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 12/63] x86: Add basic support for U-Boot as a 64-bit EFI application Simon Glass
2016-12-19  7:58   ` Bin Meng [this message]
2016-11-19 20:25 ` [U-Boot] [PATCH v2 13/63] x86: ivybridge: Declare global data where it is used Simon Glass
2016-11-19 20:25 ` [U-Boot] [PATCH v2 14/63] x86: ivybridge: Add more debugging for failures Simon Glass
2016-12-19  7:58   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 15/63] x86: ivybridge: Fix types for 64-bit compilation Simon Glass
2016-12-19  7:59   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 16/63] x86: dts: Mark serial as needed before relocation Simon Glass
2016-12-20  3:44   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 17/63] x86: fsp: Fix cast for 64-bit compilation Simon Glass
2016-12-20  3:46   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 18/63] x86: lib: Fix types and casts " Simon Glass
2016-11-19 20:25 ` [U-Boot] [PATCH v2 19/63] x86: Add Kconfig options to build 64-bit U-Boot Simon Glass
2016-12-20  3:53   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 20/63] x86: Kconfig: Add location options for 16/32-bit init Simon Glass
2016-12-20  4:00   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 21/63] x86: Use X86_16BIT_INIT instead of X86_RESET_VECTOR Simon Glass
2016-12-20  4:08   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 22/63] x86: Use X86_32BIT_INIT " Simon Glass
2016-12-20  4:10   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 23/63] x86: ivybridge: Allow 32-bit init to move to SPL Simon Glass
2016-12-20  4:17   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 24/63] x86: Add 64-bit start-up code Simon Glass
2016-12-28  2:59   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 25/63] x86: board_f: Update init sequence for 64-bit startup Simon Glass
2016-12-28  3:26   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 26/63] x86: board_r: Set the global data pointer after relocation Simon Glass
2016-12-28  3:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 27/63] x86: Do relocation before clearing BSS Simon Glass
2016-12-28  3:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 28/63] x86: Refactor relocation to prepare for 64-bit Simon Glass
2016-12-28 10:29   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 29/63] x86: Add support for 64-bit relocation Simon Glass
2017-01-14 13:30   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 30/63] x86: Tidy up use of size_t in relocation Simon Glass
2017-01-14 13:30   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 31/63] x86: Add an SPL implementation Simon Glass
2017-01-14 13:30   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 32/63] x86: Move the i386 code into its own directory Simon Glass
2017-01-14 13:30   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 33/63] x86: Add cpu code for x86_64 Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 34/63] x86: Support global_data on x86_64 Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 35/63] x86: Fix up CONFIG_X86_64 check Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 36/63] x86: Add a link script for 64-bit x86 Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 37/63] x86: Add a link script for SPL Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 38/63] x86: Add SPL build rules for start-up code Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 39/63] x86: Fix up byteorder.h for x86_64 Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 40/63] x86: Drop flag_is_changable() on x86_64 Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 41/63] x86: Fix up type sizes for 64-bit Simon Glass
2017-01-14 13:31   ` Bin Meng
2017-01-16 14:08     ` Simon Glass
2016-11-19 20:25 ` [U-Boot] [PATCH v2 42/63] x86: Mention the MRC region in the README Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 43/63] x86: ivybridge: Skipt SATA init in SPL Simon Glass
2017-01-14 13:31   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 44/63] x86: ivybridge: Provide a dummy SDRAM init for 64-bit Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 45/63] x86: Don't try to run the VGA BIOS in 64-bit mode Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 46/63] x86: Don't build call64 and setjmp on 64-bit Simon Glass
2017-01-14 13:32   ` Bin Meng
2017-01-16 14:08     ` Simon Glass
2016-11-19 20:25 ` [U-Boot] [PATCH v2 47/63] x86: Don't build cpu files which are not supported " Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 48/63] x86: Don't build 32-bit efi files on x86_64 Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 49/63] x86: Don't try to boot Linux from SPL Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 50/63] x86: Drop interrupt support in 64-bit mode Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 51/63] x86: Support jumping from SPL to U-Boot Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 52/63] x86: Move pirq_routing_table to global_data Simon Glass
2017-01-14 13:32   ` Bin Meng
2017-01-16 14:08     ` Simon Glass
2017-01-17  4:34       ` Bin Meng
2017-02-04  6:01         ` Bin Meng
2017-02-06 15:35           ` Simon Glass
2016-11-19 20:25 ` [U-Boot] [PATCH v2 53/63] x86: Move turbo_state " Simon Glass
2016-11-19 20:25 ` [U-Boot] [PATCH v2 54/63] x86: Change irq_already_routed to a local variable Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 55/63] x86: Move call64 to the i386 directory Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 56/63] x86: Move setjmp " Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 57/63] x86: Add a dummy setjmp implementation for x86_64 Simon Glass
2017-01-14 13:32   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 58/63] x86: link: Add a text base for 64-bit U-Boot Simon Glass
2017-01-14 13:33   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 59/63] x86: link: Add SPL declarations to the binman image Simon Glass
2017-01-14 13:33   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 60/63] x86: link: Set up device tree for SPL Simon Glass
2017-01-14 13:33   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 61/63] x86: link: Add build options " Simon Glass
2017-01-14 13:33   ` Bin Meng
2017-01-16 14:08     ` Simon Glass
2016-11-19 20:25 ` [U-Boot] [PATCH v2 62/63] x86: Update compile/link flags to support 64-bit U-Boot Simon Glass
2017-01-14 13:33   ` Bin Meng
2016-11-19 20:25 ` [U-Boot] [PATCH v2 63/63] x86: link: Add a config for " Simon Glass
2017-01-14 13:33   ` Bin Meng
2017-01-16 14:08     ` Simon Glass

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='CAEUhbmU1DT9=_pt1AcLH-AdPpdxqqSADTxzYvg9Wphq+i9_-kg@mail.gmail.com' \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.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.