efi/libstub/x86: Avoid thunking for native firmware calls
[linux-2.6-block.git] / arch / x86 / boot / compressed / eboot.c
index 2733bc263c04a2a00f4b032df755d1a1be9c25be..36a26d6e2af0a896ee0c6e6653850f173cba7e19 100644 (file)
@@ -44,7 +44,8 @@ BOOT_SERVICES(64);
 void efi_char16_printk(efi_system_table_t *table, efi_char16_t *str)
 {
        efi_call_proto(efi_simple_text_output_protocol, output_string,
-                      efi_early->text_output, str);
+                      ((efi_simple_text_output_protocol_t *)(unsigned long)
+                               efi_early->text_output), str);
 }
 
 static efi_status_t