Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / arch / ppc-sam440 / kernel / kernel_debug.c
blob90ce206433135920296f177f0278093c7d7db9c3
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/debug.h>
7 #include <asm/amcc440.h>
8 #include <asm/io.h>
9 #include <aros/libcall.h>
10 #include <stdarg.h>
11 #include <string.h>
12 #include <proto/exec.h>
13 #include <exec/lists.h>
14 #include <exec/nodes.h>
15 #include <exec/memory.h>
17 #include "kernel_intern.h"
19 struct PrivData {
20 struct KernelBase *kbase;
21 uint32_t tbu, tbl;
25 * Character output function. All debug output ends up there.
26 * This function needs to be implemented for every supported architecture.
27 * KernelBase is an optional parameter here. During
28 * very early startup it can be NULL.
31 int krnPutC(int c, struct KernelBase *KernelBase)
33 if (c == '\n')
35 krnPutC('\r', KernelBase);
37 while(!(inb(UART0_LSR) & UART_LSR_TEMT));
38 outb(c, UART0_THR);
40 return 1;