#define SERIAL_PORT 0x3F8
#define GDB_SERIAL_PORT 0x2F8
+
// === IMPORTS ===
extern int GetCPUNum(void);
extern void *Proc_GetCurThread(void);
int gbDebug_SerialSetup = 0;
int gbGDB_SerialSetup = 0;
+// === PROTOTYPEs ===
+ int putDebugChar(char ch);
+
// === CODE ===
/**
* \brief Determine if a short spinlock is locked
}
// === DEBUG IO ===
+#if USE_GDB_STUB
int putDebugChar(char ch)
{
if(!gbGDB_SerialSetup) {
while( (inb(GDB_SERIAL_PORT + 5) & 1) == 0) ;
return inb(GDB_SERIAL_PORT);
}
+#endif
void Debug_PutCharDebug(char ch)
{
#endif
}
+void Debug_PutStringDebug(const char *String)
+{
+ while(*String)
+ Debug_PutCharDebug(*String++);
+}
+
// === PORT IO ===
void outb(Uint16 Port, Uint8 Data)
{