patch-2.4.20 linux-2.4.20/arch/ppc64/kernel/udbg.c
Next file: linux-2.4.20/arch/ppc64/kernel/xics.c
Previous file: linux-2.4.20/arch/ppc64/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 63
- Date:
Thu Nov 28 15:53:11 2002
- Orig file:
linux-2.4.19/arch/ppc64/kernel/udbg.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/ppc64/kernel/udbg.c linux-2.4.20/arch/ppc64/kernel/udbg.c
@@ -52,8 +52,6 @@
volatile struct NS16550 *udbg_comport;
-spinlock_t udbg_lock = SPIN_LOCK_UNLOCKED;
-
void
udbg_init_uart(void *comport)
{
@@ -161,6 +159,12 @@
}
void
+udbg_console_write(struct console *con, const char *s, unsigned int n)
+{
+ udbg_write(s, n);
+}
+
+void
udbg_puthex(unsigned long val)
{
int i, nibbles = sizeof(val)*2;
@@ -190,16 +194,13 @@
void
udbg_printf(const char *fmt, ...)
{
- unsigned long flags;
unsigned char buf[256];
va_list args;
va_start(args, fmt);
- spin_lock_irqsave(&udbg_lock, flags);
vsprintf(buf, fmt, args);
udbg_puts(buf);
- spin_unlock_irqrestore(&udbg_lock, flags);
va_end(args);
}
@@ -208,7 +209,6 @@
void
udbg_ppcdbg(unsigned long debug_flags, const char *fmt, ...)
{
- unsigned long flags;
unsigned long active_debugs = debug_flags & naca->debug_switch;
if ( active_debugs ) {
@@ -216,7 +216,6 @@
unsigned char buf[256];
unsigned long i, len = 0;
- spin_lock_irqsave(&udbg_lock, flags);
for(i=0; i < PPCDBG_NUM_FLAGS ;i++) {
if (((1U << i) & active_debugs) &&
trace_names[i]) {
@@ -237,7 +236,6 @@
va_start(ap, fmt);
vsprintf(buf, fmt, ap);
udbg_puts(buf);
- spin_unlock_irqrestore(&udbg_lock, flags);
va_end(ap);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)