From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756125AbcA2NEb (ORCPT ); Fri, 29 Jan 2016 08:04:31 -0500 Received: from mail-lf0-f41.google.com ([209.85.215.41]:36789 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751307AbcA2NEa (ORCPT ); Fri, 29 Jan 2016 08:04:30 -0500 Date: Fri, 29 Jan 2016 19:00:42 +0600 From: Alexnader Kuleshov To: linux-kernel@vger.kernel.org Subject: Why do we reserve 8 bytes on top of the boot time stack? Message-ID: <20160129130042.GA12414@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: Linux X-Date: Fri Jan 29 18:54:24 ALMT 2016 User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.