diff options
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/arch-v10/kernel/kgdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/cris/arch-v10/kernel/kgdb.c b/arch/cris/arch-v10/kernel/kgdb.c index 3c852b3141c6..e02d2df5220c 100644 --- a/arch/cris/arch-v10/kernel/kgdb.c +++ b/arch/cris/arch-v10/kernel/kgdb.c | |||
@@ -345,6 +345,7 @@ static int consistency_status = SUCCESS; | |||
345 | in order to provide access mainly for 'g', 'G' and 'P'. | 345 | in order to provide access mainly for 'g', 'G' and 'P'. |
346 | */ | 346 | */ |
347 | 347 | ||
348 | #ifdef PROCESS_SUPPORT | ||
348 | /* Need two task id pointers in order to handle Hct and Hgt commands. */ | 349 | /* Need two task id pointers in order to handle Hct and Hgt commands. */ |
349 | static int current_thread_c = 0; | 350 | static int current_thread_c = 0; |
350 | static int current_thread_g = 0; | 351 | static int current_thread_g = 0; |
@@ -352,6 +353,7 @@ static int current_thread_g = 0; | |||
352 | /* Need two register images in order to handle Hct and Hgt commands. The | 353 | /* Need two register images in order to handle Hct and Hgt commands. The |
353 | variable reg_g is in addition to reg above. */ | 354 | variable reg_g is in addition to reg above. */ |
354 | static registers reg_g; | 355 | static registers reg_g; |
356 | #endif /* PROCESS_SUPPORT */ | ||
355 | 357 | ||
356 | /********************************** Breakpoint *******************************/ | 358 | /********************************** Breakpoint *******************************/ |
357 | /* Use an internal stack in the breakpoint and interrupt response routines */ | 359 | /* Use an internal stack in the breakpoint and interrupt response routines */ |
@@ -610,6 +612,7 @@ putDebugString (const unsigned char *str, int length) | |||
610 | } | 612 | } |
611 | 613 | ||
612 | /********************************* Register image ****************************/ | 614 | /********************************* Register image ****************************/ |
615 | #ifdef PROCESS_SUPPORT | ||
613 | /* Copy the content of a register image into another. The size n is | 616 | /* Copy the content of a register image into another. The size n is |
614 | the size of the register image. Due to struct assignment generation of | 617 | the size of the register image. Due to struct assignment generation of |
615 | memcpy in libc. */ | 618 | memcpy in libc. */ |
@@ -623,7 +626,6 @@ copy_registers (registers *dptr, registers *sptr, int n) | |||
623 | *dreg++ = *sreg++; | 626 | *dreg++ = *sreg++; |
624 | } | 627 | } |
625 | 628 | ||
626 | #ifdef PROCESS_SUPPORT | ||
627 | /* Copy the stored registers from the stack. Put the register contents | 629 | /* Copy the stored registers from the stack. Put the register contents |
628 | of thread thread_id in the struct reg. */ | 630 | of thread thread_id in the struct reg. */ |
629 | static void | 631 | static void |