* [patch] correct PERCPU_MCA_SIZE and ia64_init_stack size
@ 2005-01-07 21:12 Russ Anderson
0 siblings, 0 replies; only message in thread
From: Russ Anderson @ 2005-01-07 21:12 UTC (permalink / raw)
To: linux-ia64
Two changes:
* PERCPU_MCA_SIZE was the size of the wrong structure.
* ia64_init_stack was larger than necessary.
Signed-off-by: Russ Anderson <rja@sgi.com>
--------------------------------------------------------------
Index: 2.6.11/include/asm-ia64/mca.h
=================================--- 2.6.11.orig/include/asm-ia64/mca.h 2005-01-07 14:37:22.026643158 -0600
+++ 2.6.11/include/asm-ia64/mca.h 2005-01-07 14:40:21.986122830 -0600
@@ -61,8 +61,6 @@
} ia64_mc_info_t;
-#define PERCPU_MCA_SIZE sizeof(struct ia64_mc_info_s)
-
typedef struct ia64_mca_sal_to_os_state_s {
u64 imsto_os_gp; /* GP of the os registered with the SAL */
u64 imsto_pal_proc; /* PAL_PROC entry point - physical addr */
@@ -110,12 +108,14 @@
typedef struct ia64_mca_cpu_s {
u64 ia64_mca_stack[IA64_MCA_STACK_SIZE] __attribute__((aligned(16)));
- u64 ia64_mca_proc_state_dump[512] __attribute__((aligned(16)));
+ u64 ia64_mca_proc_state_dump[512] __attribute__((aligned(16)));
u64 ia64_mca_stackframe[32] __attribute__((aligned(16)));
- u64 ia64_mca_bspstore[IA64_MCA_BSPSTORE_SIZE] __attribute__((aligned(16)));
- u64 ia64_init_stack[KERNEL_STACK_SIZE] __attribute__((aligned(16)));
+ u64 ia64_mca_bspstore[IA64_MCA_BSPSTORE_SIZE] __attribute__((aligned(16)));
+ u64 ia64_init_stack[KERNEL_STACK_SIZE/8] __attribute__((aligned(16)));
} ia64_mca_cpu_t;
+#define PERCPU_MCA_SIZE sizeof(ia64_mca_cpu_t)
+
extern void ia64_mca_init(void);
extern void ia64_os_mca_dispatch(void);
extern void ia64_os_mca_dispatch_end(void);
--
Russ Anderson, OS RAS/Partitioning Project Lead
SGI - Silicon Graphics Inc rja@sgi.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-07 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-07 21:12 [patch] correct PERCPU_MCA_SIZE and ia64_init_stack size Russ Anderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox