diff options
| author | Michael Brown | 2021-03-02 11:15:23 +0100 |
|---|---|---|
| committer | Michael Brown | 2021-03-02 11:15:23 +0100 |
| commit | 916ebef1984e9caa05646463734b51202b405774 (patch) | |
| tree | 5aadea92562bac70a98e3837c7577de76eac1405 /src/arch/x86/interface/pcbios/bios_console.c | |
| parent | [linux] Provide ACPI settings via /sys/firmware/acpi/tables (diff) | |
| download | ipxe-916ebef1984e9caa05646463734b51202b405774.tar.gz ipxe-916ebef1984e9caa05646463734b51202b405774.tar.xz ipxe-916ebef1984e9caa05646463734b51202b405774.zip | |
[build] Allow __asmcall to be used as a type attribute
The "used" attribute can be applied only to functions or variables,
which prevents the use of __asmcall as a type attribute.
Fix by removing "used" from the definition of __asmcall for i386 and
x86_64 architectures, and adding explicit __used annotations where
necessary.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/x86/interface/pcbios/bios_console.c')
| -rw-r--r-- | src/arch/x86/interface/pcbios/bios_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/interface/pcbios/bios_console.c b/src/arch/x86/interface/pcbios/bios_console.c index 52a02fba5..80ebf330e 100644 --- a/src/arch/x86/interface/pcbios/bios_console.c +++ b/src/arch/x86/interface/pcbios/bios_console.c @@ -443,7 +443,7 @@ struct console_driver bios_console __console_driver = { * * @v ix86 Registers as passed to INT 16 */ -static __asmcall void bios_inject ( struct i386_all_regs *ix86 ) { +static __asmcall __used void bios_inject ( struct i386_all_regs *ix86 ) { unsigned int discard_a; unsigned int scancode; unsigned int i; |
