|
@@ -101,30 +101,8 @@ efi_open_volume(efi_system_table_t *sys_table, void *__image, void **__fh)
|
|
|
|
|
|
void efi_char16_printk(efi_system_table_t *table, efi_char16_t *str)
|
|
|
{
|
|
|
- unsigned long output_string;
|
|
|
- size_t offset;
|
|
|
-
|
|
|
- if (efi_early->is64) {
|
|
|
- struct efi_simple_text_output_protocol_64 *out;
|
|
|
- u64 *func;
|
|
|
-
|
|
|
- offset = offsetof(typeof(*out), output_string);
|
|
|
- output_string = efi_early->text_output + offset;
|
|
|
- out = (typeof(out))(unsigned long)efi_early->text_output;
|
|
|
- func = (u64 *)output_string;
|
|
|
-
|
|
|
- efi_early->call(*func, out, str);
|
|
|
- } else {
|
|
|
- struct efi_simple_text_output_protocol_32 *out;
|
|
|
- u32 *func;
|
|
|
-
|
|
|
- offset = offsetof(typeof(*out), output_string);
|
|
|
- output_string = efi_early->text_output + offset;
|
|
|
- out = (typeof(out))(unsigned long)efi_early->text_output;
|
|
|
- func = (u32 *)output_string;
|
|
|
-
|
|
|
- efi_early->call(*func, out, str);
|
|
|
- }
|
|
|
+ efi_call_proto(efi_simple_text_output_protocol, output_string,
|
|
|
+ efi_early->text_output, str);
|
|
|
}
|
|
|
|
|
|
static efi_status_t
|