All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/8] x86: Initialize GDT entry 1 to be the 32-bit CS as well
Date: Thu, 1 Oct 2015 17:00:10 -0600	[thread overview]
Message-ID: <CAPnjgZ1FJMte8PZQCvvjXHyEHhBmXwfBS+T5w=o42uOt+etvLg@mail.gmail.com> (raw)
In-Reply-To: <1443086484-26942-2-git-send-email-bmeng.cn@gmail.com>

On Thursday, 24 September 2015, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> Some OS (like VxWorks) requires GDT entry 1 to be the 32-bit CS.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  arch/x86/cpu/cpu.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
> index 1b76ca1..812c5e4 100644
> --- a/arch/x86/cpu/cpu.c
> +++ b/arch/x86/cpu/cpu.c
> @@ -142,7 +142,12 @@ void arch_setup_gd(gd_t *new_gd)
>
>         gdt_addr = new_gd->arch.gdt;
>
> -       /* CS: code, read/execute, 4 GB, base 0 */
> +       /*
> +        * CS: code, read/execute, 4 GB, base 0
> +        *
> +        * Some OS (like VxWorks) requires GDT entry 1 to be the 32-bit CS
> +        */
> +       gdt_addr[X86_GDT_ENTRY_UNUSED] = GDT_ENTRY(0xc09b, 0, 0xfffff);
>         gdt_addr[X86_GDT_ENTRY_32BIT_CS] = GDT_ENTRY(0xc09b, 0, 0xfffff);
>
>         /* DS: data, read/write, 4 GB, base 0 */
> --
> 1.8.2.1
>

 Acked-by: Simon Glass <sjg@chromium.org>

  reply	other threads:[~2015-10-01 23:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-24  9:21 [U-Boot] [PATCH 0/8] Better support of booting VxWorks via 'bootvx' Bin Meng
2015-09-24  9:21 ` [U-Boot] [PATCH 1/8] x86: Initialize GDT entry 1 to be the 32-bit CS as well Bin Meng
2015-10-01 23:00   ` Simon Glass [this message]
2015-09-24  9:21 ` [U-Boot] [PATCH 2/8] cmd: Convert CONFIG_CMD_ELF to Kconfig Bin Meng
2015-09-25 18:36   ` Tom Rini
2015-09-26 16:51     ` Bin Meng
2015-09-26 20:13       ` Tom Rini
2015-09-27  1:34         ` Bin Meng
2015-09-27  2:46           ` Bin Meng
2015-09-27 12:53             ` Tom Rini
2015-09-27 13:04               ` Bin Meng
2015-09-28 10:21         ` Bin Meng
2015-09-28 13:10           ` Bin Meng
2015-09-24  9:21 ` [U-Boot] [PATCH 3/8] cmd: Clean up cmd_elf a little bit Bin Meng
2015-09-25 18:37   ` Tom Rini
2015-09-24  9:21 ` [U-Boot] [PATCH 4/8] cmd: elf: Reorder load_elf_image_phdr() and load_elf_image_shdr() Bin Meng
2015-09-25 18:37   ` Tom Rini
2015-09-24  9:21 ` [U-Boot] [PATCH 5/8] cmd: bootvx: Pass netmask and gatewayip to VxWorks bootline Bin Meng
2015-09-25  2:34   ` Bin Meng
2015-09-24  9:21 ` [U-Boot] [PATCH 6/8] cmd: bootvx: Always get VxWorks bootline from env Bin Meng
2015-09-25 18:39   ` Tom Rini
2015-09-24  9:21 ` [U-Boot] [PATCH 7/8] cmd: bootvx: Pass E820 information to an x86 VxWorks kernel Bin Meng
2015-09-25 18:39   ` Tom Rini
2015-09-24  9:21 ` [U-Boot] [PATCH 8/8] doc: Complement document about booting VxWorks Bin Meng
2015-09-25 18:40   ` Tom Rini
2015-09-28  7:39 ` [U-Boot] [PATCH 0/8] Better support of booting VxWorks via 'bootvx' Jian Luo
2015-09-28  9:14   ` Bin Meng

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='CAPnjgZ1FJMte8PZQCvvjXHyEHhBmXwfBS+T5w=o42uOt+etvLg@mail.gmail.com' \
    --to=sjg@chromium.org \
    --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.