diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-11-12 13:52:05 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-11-12 13:52:05 +0000 |
commit | 69122c424d44ab10dd1dca198fd5ccb44d2be864 (patch) | |
tree | cda020b57f6e7308c5419bc20f31151cfa457f24 | |
parent | 9cd1a7555816a3fd73627138b589c3f87bde5ed0 (diff) | |
download | syslinux-69122c424d44ab10dd1dca198fd5ccb44d2be864.tar.gz syslinux-69122c424d44ab10dd1dca198fd5ccb44d2be864.tar.xz syslinux-69122c424d44ab10dd1dca198fd5ccb44d2be864.zip |
efi: Fill out writechr() implementation
Lots of error strings are printed with writestr(), so the EFI code
requires a working implementation of writechr().
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | efi/console.c | 2 | ||||
-rw-r--r-- | efi/efi.h | 2 | ||||
-rw-r--r-- | efi/main.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/efi/console.c b/efi/console.c index 60b04eab..1f09c5a6 100644 --- a/efi/console.c +++ b/efi/console.c @@ -5,7 +5,7 @@ extern EFI_GUID GraphicsOutputProtocol; void writechr(char data) { - Print(L"Wanted to print something\n"); + efi_write_char(data, 0); } static inline EFI_STATUS open_protocol(EFI_HANDLE handle, EFI_GUID *protocol, @@ -13,4 +13,6 @@ extern EFI_HANDLE image_handle; struct screen_info; extern void setup_screen(struct screen_info *); +extern void efi_write_char(uint8_t, uint8_t); + #endif /* _SYSLINUX_EFI_H */ @@ -100,7 +100,7 @@ uint8_t KeepPXE; volatile uint32_t __ms_timer = 0; volatile uint32_t __jiffies = 0; -static void efi_write_char(uint8_t ch, uint8_t attribute) +void efi_write_char(uint8_t ch, uint8_t attribute) { SIMPLE_TEXT_OUTPUT_INTERFACE *out = ST->ConOut; uint16_t c[2]; |