Changeset 7109


Ignore:
Timestamp:
2007-05-06T17:25:02+02:00 (9 years ago)
Author:
ejka
Message:

ar7: Add minimal kgdb implementation (#114).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar7-2.6/files/arch/mips/ar7/prom.c

    r7107 r7109  
    3030#include <asm/bootinfo.h> 
    3131#include <asm/mips-boards/prom.h> 
     32#include <asm/gdb-stub.h> 
    3233 
    3334#include <asm/ar7/ar7.h> 
     
    244245                return; 
    245246 
     247#ifdef CONFIG_KGDB 
     248        strcat(prom_getcmdline(), " console=kgdb"); 
     249        prom_printf("Please connect GDB to this port\n"); 
     250        kgdb_enabled = 1; 
     251        return; 
     252#endif 
     253 
    246254        if ((s = prom_getenv("modetty0"))) { 
    247255                baud = simple_strtoul(s, &p, 10); 
     
    302310} 
    303311 
     312#ifdef CONFIG_KGDB 
     313int putDebugChar(char c) 
     314{ 
     315        return prom_putchar(c); 
     316} 
     317 
     318char getDebugChar(void) 
     319{ 
     320       return prom_getchar(); 
     321} 
     322#endif 
     323 
    304324EXPORT_SYMBOL(prom_getenv); 
Note: See TracChangeset for help on using the changeset viewer.