Fixed some lose ends in the serial line debug dump code.

This commit is contained in:
Philip Homburg 2007-04-23 15:59:16 +00:00
parent 29f7031340
commit cab8f526de
2 changed files with 6 additions and 12 deletions

View file

@ -8,8 +8,8 @@
#include <minix/portio.h>
#include "proto.h"
#include "../../proc.h"
FORWARD _PROTOTYPE( void do_ser_debug, (void));
FORWARD _PROTOTYPE( void ser_debug, (int c));
PUBLIC void arch_shutdown(int how)
@ -47,16 +47,10 @@ PUBLIC void system_init(void)
#define COM1_BASE 0x3F8
#define COM1_THR (COM1_BASE + 0)
#define LSR_THRE 0x20
#define COM1_RBR (COM1_BASE + 0)
#define COM1_LSR (COM1_BASE + 5)
#define REG_RBR 0
#define REG_LSR 5
#define LSR_DR 0x1
#define COM1_RBR (COM1_BASE + REG_RBR)
#define COM1_LSR (COM1_BASE + REG_LSR)
#define LSR_DR 0x01
#define LSR_THRE 0x20
PUBLIC void ser_putc(char c)
{
@ -76,7 +70,7 @@ PUBLIC void ser_putc(char c)
/*===========================================================================*
* do_ser_debug *
*===========================================================================*/
PRIVATE void do_ser_debug()
PUBLIC void do_ser_debug()
{
u8_t c, lsr;

View file

@ -129,6 +129,6 @@ _PROTOTYPE( void read_tsc, (unsigned long *high, unsigned long *low) );
_PROTOTYPE( int arch_init_profile_clock, (u32_t freq) );
_PROTOTYPE( void arch_stop_profile_clock, (void) );
_PROTOTYPE( void arch_ack_profile_clock, (void) );
_PROTOTYPE( void do_ser_debug, (void) );
#endif /* PROTO_H */