Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
debug-stub.c File Reference
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/serial_reg.h>
#include <linux/start_kernel.h>
#include <asm/serial-regs.h>
#include <asm/timer-regs.h>
#include <asm/irc-regs.h>
#include <asm/gdb-stub.h>
#include "gdb-io.h"

Go to the source code of this file.

Macros

#define __UART0(X)   (*(volatile uint8_t *)(UART0_BASE + (UART_##X)))
 
#define LSR_WAIT_FOR0(STATE)
 
#define FLOWCTL_QUERY0(LINE)   ({ __UART0(MSR) & UART_MSR_##LINE; })
 
#define FLOWCTL_CLEAR0(LINE)   do { __UART0(MCR) &= ~UART_MCR_##LINE; } while (0)
 
#define FLOWCTL_SET0(LINE)   do { __UART0(MCR) |= UART_MCR_##LINE; } while (0)
 
#define FLOWCTL_WAIT_FOR0(LINE)
 

Functions

asmlinkage void debug_stub (void)
 
void debug_stub_exit (int status)
 
void debug_to_serial (const char *p, int n)
 
void debug_to_serial2 (const char *fmt,...)
 
void __init console_set_baud (unsigned baud)
 
int __init console_get_baud (void)
 
void __debug_bug_printk (const char *file, unsigned line)
 

Variables

struct frv_debug_status __debug_status
 

Macro Definition Documentation

#define __UART0 (   X)    (*(volatile uint8_t *)(UART0_BASE + (UART_##X)))

Definition at line 27 of file debug-stub.c.

#define FLOWCTL_CLEAR0 (   LINE)    do { __UART0(MCR) &= ~UART_MCR_##LINE; } while (0)

Definition at line 34 of file debug-stub.c.

#define FLOWCTL_QUERY0 (   LINE)    ({ __UART0(MSR) & UART_MSR_##LINE; })

Definition at line 33 of file debug-stub.c.

#define FLOWCTL_SET0 (   LINE)    do { __UART0(MCR) |= UART_MCR_##LINE; } while (0)

Definition at line 35 of file debug-stub.c.

#define FLOWCTL_WAIT_FOR0 (   LINE)
Value:
do { \
gdbstub_do_rx(); \
} while(!FLOWCTL_QUERY(LINE))

Definition at line 37 of file debug-stub.c.

#define LSR_WAIT_FOR0 (   STATE)
Value:
do { \
} while (!(__UART0(LSR) & UART_LSR_##STATE))

Definition at line 29 of file debug-stub.c.

Function Documentation

void __debug_bug_printk ( const char file,
unsigned  line 
)

Definition at line 253 of file debug-stub.c.

int __init console_get_baud ( void  )

Definition at line 232 of file debug-stub.c.

void __init console_set_baud ( unsigned  baud)

Definition at line 201 of file debug-stub.c.

asmlinkage void debug_stub ( void  )

Definition at line 52 of file debug-stub.c.

void debug_stub_exit ( int  status)

Definition at line 142 of file debug-stub.c.

void debug_to_serial ( const char p,
int  n 
)

Definition at line 155 of file debug-stub.c.

void debug_to_serial2 ( const char fmt,
  ... 
)

Definition at line 183 of file debug-stub.c.

Variable Documentation

struct frv_debug_status __debug_status

Definition at line 42 of file debug-stub.c.