projects
/
debian
/
elilo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a changelog entry
[debian/elilo]
/
alternate.c
diff --git
a/alternate.c
b/alternate.c
index df138ad8764ec004798ffd781ec09f2d6e9093fd..691adc74aaa647a0ed429c16eb7259a21e611620 100644
(file)
--- a/
alternate.c
+++ b/
alternate.c
@@
-1,6
+1,9
@@
/*
* Copyright (C) 2001-2003 Hewlett-Packard Co.
* Contributed by Stephane Eranian <eranian@hpl.hp.com>
/*
* Copyright (C) 2001-2003 Hewlett-Packard Co.
* Contributed by Stephane Eranian <eranian@hpl.hp.com>
+ * Contributed by Fenghua Yu <fenghua.yu@intel.com>
+ * Contributed by Bibo Mao <bibo.mao@intel.com>
+ * Contributed by Chandramouli Narayanan<mouli@linux.intel.com>
*
* This file is part of the ELILO, the EFI Linux boot loader.
*
*
* This file is part of the ELILO, the EFI Linux boot loader.
*
@@
-53,7
+56,7
@@
static EFI_GUID altk_guid={0,};
* Please note that no fatal error is reported by this function
*/
INTN
* Please note that no fatal error is reported by this function
*/
INTN
-alternate_kernel(CHAR16 *buffer, INTN size)
+alternate_kernel(CHAR16 *buffer,
U
INTN size)
{
EFI_STATUS status;
INTN ret = -1;
{
EFI_STATUS status;
INTN ret = -1;
@@
-77,7
+80,7
@@
alternate_kernel(CHAR16 *buffer, INTN size)
* - the variable does not exist
* - our buffer size is too small.
*/
* - the variable does not exist
* - our buffer size is too small.
*/
- status =
RT->GetVariable(
ELILO_ALTK_VAR, &altk_guid, NULL, &size, buffer);
+ status =
uefi_call_wrapper(RT->GetVariable, 5,
ELILO_ALTK_VAR, &altk_guid, NULL, &size, buffer);
if (EFI_ERROR(status)) {
DBG_PRT((L"cannot access variable %s: %r", ELILO_ALTK_VAR, status));
if (EFI_ERROR(status)) {
DBG_PRT((L"cannot access variable %s: %r", ELILO_ALTK_VAR, status));
@@
-110,7
+113,7
@@
alternate_kernel(CHAR16 *buffer, INTN size)
ret = 0;
delete_var:
ret = 0;
delete_var:
- status =
RT->SetVariable(
ELILO_ALTK_VAR, &altk_guid, 0, 0, NULL);
+ status =
uefi_call_wrapper(RT->SetVariable, 5,
ELILO_ALTK_VAR, &altk_guid, 0, 0, NULL);
if (EFI_ERROR(status)) {
ERR_PRT((L"cannot erase variable %s", ELILO_ALTK_VAR));
}
if (EFI_ERROR(status)) {
ERR_PRT((L"cannot erase variable %s", ELILO_ALTK_VAR));
}