mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user