Skip to content

Commit

Permalink
debug output at info level to COM1 for bhyve
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Gerdts committed Feb 26, 2018
1 parent f7714dd commit eeeeb9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BhyvePkg/BhyvePkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

## This flag is used to control the destination port for PlatformDebugLibIoPort
#gUefiBhyvePkgTokenSpaceGuid.PcdDebugIoPort|0x220|UINT16|4
gUefiBhyvePkgTokenSpaceGuid.PcdDebugIoPort|0x2F8|UINT16|4
gUefiBhyvePkgTokenSpaceGuid.PcdDebugIoPort|0x3F8|UINT16|4

## This flag determines the Power Management Base Address of choice, written
# to PIIX4 function 3 offset 0x40-0x43 bits [15:6].
Expand Down
2 changes: 1 addition & 1 deletion BhyvePkg/Csm/BhyveCsm16/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OBJECTS = Bin/BhyveCsm16Asm.o \
Bin/Video.o \
Bin/ter-u16n-IBM-CP437.o

DEBUG_PORT = -DDEBUG_PORT=0x220
DEBUG_PORT = -DDEBUG_PORT=0x3f8

BUILD_DATE = \"$(shell date +%D)\"

Expand Down
3 changes: 2 additions & 1 deletion BhyvePkg/Csm/BhyveCsm16/Printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <Uefi.h>

#include "BhyveCsm16.h"
#include "Debug.h"

#define MAX_DEBUG_MESSAGE_LENGTH 256

Expand All @@ -32,7 +33,7 @@
#define ARGUMENT_REVERSED BIT12
#define COUNT_ONLY_NO_PRINT BIT13

UINTN DebugLevel = 1;
UINTN DebugLevel = DBG_INFO;

//
// Record date and time information
Expand Down

0 comments on commit eeeeb9c

Please sign in to comment.