Commit e055595d authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Paul Mackerras

[POWERPC] cell: fix building without spufs

It may be desireable to build a kernel for cell without
spufs, e.g. as the initial kboot kernel. This requires
that the SPU specific parts of the core dump and the xmon
code depend on CONFIG_SPU_BASE instead of CONFIG_PPC_CELL.
Signed-off-by: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
parent da06aa08
...@@ -8,5 +8,5 @@ obj-y += xmon.o setjmp.o start.o nonstdio.o ...@@ -8,5 +8,5 @@ obj-y += xmon.o setjmp.o start.o nonstdio.o
ifdef CONFIG_XMON_DISASSEMBLY ifdef CONFIG_XMON_DISASSEMBLY
obj-y += ppc-dis.o ppc-opc.o obj-y += ppc-dis.o ppc-opc.o
obj-$(CONFIG_PPC_CELL) += spu-dis.o spu-opc.o obj-$(CONFIG_SPU_BASE) += spu-dis.o spu-opc.o
endif endif
...@@ -213,7 +213,7 @@ Commands:\n\ ...@@ -213,7 +213,7 @@ Commands:\n\
p call a procedure\n\ p call a procedure\n\
r print registers\n\ r print registers\n\
s single step\n" s single step\n"
#ifdef CONFIG_PPC_CELL #ifdef CONFIG_SPU_BASE
" ss stop execution on all spus\n\ " ss stop execution on all spus\n\
sr restore execution on stopped spus\n\ sr restore execution on stopped spus\n\
sf # dump spu fields for spu # (in hex)\n\ sf # dump spu fields for spu # (in hex)\n\
...@@ -2654,7 +2654,7 @@ void __init xmon_setup(void) ...@@ -2654,7 +2654,7 @@ void __init xmon_setup(void)
debugger(NULL); debugger(NULL);
} }
#ifdef CONFIG_PPC_CELL #ifdef CONFIG_SPU_BASE
struct spu_info { struct spu_info {
struct spu *spu; struct spu *spu;
...@@ -2907,7 +2907,7 @@ static int do_spu_cmd(void) ...@@ -2907,7 +2907,7 @@ static int do_spu_cmd(void)
return 0; return 0;
} }
#else /* ! CONFIG_PPC_CELL */ #else /* ! CONFIG_SPU_BASE */
static int do_spu_cmd(void) static int do_spu_cmd(void)
{ {
return -1; return -1;
......
...@@ -411,7 +411,7 @@ do { \ ...@@ -411,7 +411,7 @@ do { \
/* Keep this the last entry. */ /* Keep this the last entry. */
#define R_PPC64_NUM 107 #define R_PPC64_NUM 107
#ifdef CONFIG_PPC_CELL #ifdef CONFIG_SPU_BASE
/* Notes used in ET_CORE. Note name is "SPU/<fd>/<filename>". */ /* Notes used in ET_CORE. Note name is "SPU/<fd>/<filename>". */
#define NT_SPU 1 #define NT_SPU 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment