x86:Implemented serial port placeholders

This commit is contained in:
Jan Stoess 2010-06-18 09:04:13 +02:00
parent da198aa5c9
commit 0c9073639b
1 changed files with 14 additions and 4 deletions

View File

@ -43,11 +43,23 @@
#include <linear_ptab.h> #include <linear_ptab.h>
#if !defined(CONFIG_KDB_COMPORT) #if !defined(CONFIG_KDB_COMPORT)
#define CONFIG_KDB_COMPORT 0x3f8 #define COMPORT 0x3f8
#elif CONFIG_KDB_COMPORT == 0
# define COMPORT 0x3f8
#elif CONFIG_KDB_COMPORT == 1
# define COMPORT 0x2f8
#elif CONFIG_KDB_COMPORT == 2
# define COMPORT 0x3e8
#elif CONFIG_KDB_COMPORT == 3
# define COMPORT 0x2e8
#else
#define COMPORT CONFIG_KDB_COMPORT
#endif #endif
#if !defined(CONFIG_KDB_COMSPEED) #if !defined(CONFIG_KDB_COMSPEED)
#define CONFIG_KDB_COMSPEED 115200 #define RATE 115200
#else
#define RATE CONFIG_KDB_COMSPEED
#endif #endif
#define KERNEL_VIDEO (KERNEL_OFFSET + 0xb8000) #define KERNEL_VIDEO (KERNEL_OFFSET + 0xb8000)
@ -287,8 +299,6 @@ static char getc_screen (bool block)
** **
*/ */
#define COMPORT CONFIG_KDB_COMPORT
#define RATE CONFIG_KDB_COMSPEED
static void init_serial (void) static void init_serial (void)
{ {