All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Vasilyev <pavel@pavlinux.ru>
To: linux-rt-users@vger.kernel.org
Subject: Why in 3.14 patch some things do not have compared with 3.2?
Date: Wed, 17 Sep 2014 17:08:16 +0400	[thread overview]
Message-ID: <541987C0.7030201@pavlinux.ru> (raw)


Subj?


--- arch/x86/kernel/dumpstack_64.c 2014-03-08 12:54:32.968951000 +0400
+++ arch/x86/kernel/dumpstack_64.c 2012-03-22 00:09:30.000000000 +0400
@@ -21,10 +21,14 @@
                 (N_EXCEPTION_STACKS + DEBUG_STKSZ/EXCEPTION_STKSZ - 2)

  static char x86_stack_ids[][8] = {
+#if DEBUG_STACK > 0
                 [ DEBUG_STACK-1                 ]       = "#DB",
+#endif
                 [ NMI_STACK-1                   ]       = "NMI",
                 [ DOUBLEFAULT_STACK-1           ]       = "#DF",
+#if STACKFAULT_STACK > 0
                 [ STACKFAULT_STACK-1            ]       = "#SS",
+#endif
                 [ MCE_STACK-1                   ]       = "#MC",
  #if DEBUG_STKSZ > EXCEPTION_STKSZ
                 [ N_EXCEPTION_STACKS ...
--- arch/x86/kernel/cpu/common.c 2014-03-08 12:54:32.968951000 +0400
+++ arch/x86/kernel/cpu/common.c 2012-08-15 07:06:04.000000000 +0400
@@ -1051,7 +1051,9 @@
   */
  static const unsigned int exception_stack_sizes[N_EXCEPTION_STACKS] = {
           [0 ... N_EXCEPTION_STACKS - 1]        = EXCEPTION_STKSZ,
+#if DEBUG_STACK > 0
           [DEBUG_STACK - 1]                     = DEBUG_STKSZ
+#endif
  };

  static DEFINE_PER_CPU_PAGE_ALIGNED(char, exception_stacks
--- arch/x86/include/asm/page_64_types.h 2014-03-08 12:54:32.967951000 +0400
+++ arch/x86/include/asm/page_64_types.h 2012-03-22 00:09:30.000000000 +0400
@@ -14,12 +14,21 @@
  #define IRQ_STACK_ORDER 2
  #define IRQ_STACK_SIZE (PAGE_SIZE << IRQ_STACK_ORDER)

-#define STACKFAULT_STACK 1
-#define DOUBLEFAULT_STACK 2
-#define NMI_STACK 3
-#define DEBUG_STACK 4
-#define MCE_STACK 5
-#define N_EXCEPTION_STACKS 5  /* hw limit: 7 */
+#ifdef CONFIG_PREEMPT_RT_FULL
+# define STACKFAULT_STACK 0
+# define DOUBLEFAULT_STACK 1
+# define NMI_STACK 2
+# define DEBUG_STACK 0
+# define MCE_STACK 3
+# define N_EXCEPTION_STACKS 3  /* hw limit: 7 */
+#else
+# define STACKFAULT_STACK 1
+# define DOUBLEFAULT_STACK 2
+# define NMI_STACK 3
+# define DEBUG_STACK 4
+# define MCE_STACK 5
+# define N_EXCEPTION_STACKS 5  /* hw limit: 7 */
+#endif

  #define PUD_PAGE_SIZE          (_AC(1, UL) << PUD_SHIFT)
  #define PUD_PAGE_MASK          (~(PUD_PAGE_SIZE-1))


-- 

                                                          Pavel.

                 reply	other threads:[~2014-09-17 13:08 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=541987C0.7030201@pavlinux.ru \
    --to=pavel@pavlinux.ru \
    --cc=linux-rt-users@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.