All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexnader Kuleshov <kuleshovmail@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Why do we reserve 8 bytes on top of the boot time stack?
Date: Fri, 29 Jan 2016 19:00:42 +0600	[thread overview]
Message-ID: <20160129130042.GA12414@localhost> (raw)

Hello,

We reserve top 8 bytes of the boot stack in the arch/x86/kernel/head_64.S:

GLOBAL(stack_start)
.quad  init_thread_union+THREAD_SIZE-8

So, the question is in subject. Why? I've found definition of the
TOP_OF_KERNEL_STACK_PADDING macro arch/x86/include/asm/thread_info.h,
but it is zero for the x86_64.

Thank you.

                 reply	other threads:[~2016-01-29 13:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20160129130042.GA12414@localhost \
    --to=kuleshovmail@gmail.com \
    --cc=linux-kernel@vger.kernel.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 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.