mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
powerpc/xmon: Fix compile error with PPC_8xx=y
Rearrange the code so that mode and badaddr are only defined when they're used. Also unsplit the string for easier grepping, and switch from CONFIG_8xx which is deprecated to CONFIG_PPC_8xx. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
67d2041808
commit
09b6c1129f
@ -1242,14 +1242,14 @@ bpt_cmds(void)
|
|||||||
{
|
{
|
||||||
int cmd;
|
int cmd;
|
||||||
unsigned long a;
|
unsigned long a;
|
||||||
int mode, i;
|
int i;
|
||||||
struct bpt *bp;
|
struct bpt *bp;
|
||||||
const char badaddr[] = "Only kernel addresses are permitted "
|
|
||||||
"for breakpoints\n";
|
|
||||||
|
|
||||||
cmd = inchar();
|
cmd = inchar();
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
#ifndef CONFIG_8xx
|
#ifndef CONFIG_PPC_8xx
|
||||||
|
static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n";
|
||||||
|
int mode;
|
||||||
case 'd': /* bd - hardware data breakpoint */
|
case 'd': /* bd - hardware data breakpoint */
|
||||||
mode = 7;
|
mode = 7;
|
||||||
cmd = inchar();
|
cmd = inchar();
|
||||||
|
Loading…
Reference in New Issue
Block a user