Displaying 5 results from an estimated 5 matches for "efi_getchar".
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
...-- a/efi/main.c 2014-10-06 10:27:44.000000000 -0600
+++ b/efi/main.c 2015-02-18 19:48:27.215899105 -0700
@@ -1,4 +1,8 @@
/*
+ * EFI image boot capabilities by Patrick Masotta (Serva) (c)2015
+ */
+
+/*
* Copyright 2011-2014 Intel Corporation - All Rights Reserved
*/
@@ -348,7 +352,11 @@ char efi_getchar(char *hi)
do {
status = uefi_call_wrapper(in->ReadKeyStroke, 2, in, &key);
- } while (status == EFI_NOT_READY);
+ } while (status != EFI_NOT_READY);
+
+ status = WaitForSingleEvent(in->WaitForKey, 0);
+ status = uefi_call_wrapper(in->ReadKeyStroke, 2, in, &key)...
2012 Nov 09
1
Syslinux-6.00-pre1
...copy
syslinux.efi to your EFI system partition).
In case anyone's interested below is the short log between
Syslinux-5.00-pre9, e.g. all the changes that are 6.00-specific.
---
Chandramouli Narayanan (12):
core: Remove unused argument to init()
efi: Actually return a character in efi_getchar()
efi: Add Auxiliary Data Vector support
core, efi: Return new pointer in realloc()
efi: Turn off debugging support by default
ansi: Improve EFI console support
module: Define __{ctors,dtors}_end symbols
core: Rename DEBUG macro to avoid gnu-efi library conflict...
2016 Mar 20
0
[PATCH 0/1] EFI image booting capabilities
...by Patrick Masotta (Serva) (c)2015
> + */
> +
> +/*
> * Copyright 2011-2014 Intel Corporation - All Rights Reserved
> */
I'm not a legal expert but I've more typically seen newer lines below
the old lines and as a part of the same comment.
> @@ -348,7 +352,11 @@ char efi_getchar(char *hi)
>
> do {
> status = uefi_call_wrapper(in->ReadKeyStroke, 2, in, &key);
> - } while (status == EFI_NOT_READY);
> + } while (status != EFI_NOT_READY);
> +
> + status = WaitForSingleEvent(in->WaitForKey, 0);
> +...
2015 Mar 14
0
[PATCH 0/1] EFI access from Com32 modules
...= KEY_NONE;
+ while (inc == KEY_NONE)
+ inc = get_key(stdin, 6000);
+ puts("");
+ return inc;
+}
+
+int doTheJob(void)
+{
+
+ printf("This Com32 instance of elf_bios_efi.c32 is running on a BIOS environment\n");
+ pressanykey();
+
+ return 0;
+}
+
+#else
+
+char efi_getchar(char *hi)
+{
+ SIMPLE_INPUT_INTERFACE *in = ST->ConIn;
+ EFI_INPUT_KEY key;
+ EFI_STATUS status;
+
+
+ status = WaitForSingleEvent(in->WaitForKey, 0); // 0=> no timeout
+ status = uefi_call_wrapper(in->ReadKeyStroke, 2, in, &key); // get the char
+
+ if (!key.ScanCode)
+ return...
2013 Jun 20
9
Syslinux 6.00 released
...l be a result of introducing the 'firmware' abstraction that
allows the BIOS and EFI backends to coexist.
Shortlog from 5.11-pre2 (the last 5.xx branch merged) is below,
--
Chandramouli Narayanan (12):
core: Remove unused argument to init()
efi: Actually return a character in efi_getchar()
efi: Add Auxiliary Data Vector support
core, efi: Return new pointer in realloc()
efi: Turn off debugging support by default
ansi: Improve EFI console support
module: Define __{ctors,dtors}_end symbols
core: Rename DEBUG macro to avoid gnu-efi library conflict...