1
0
Fork 0
qemu/roms/qboot/include/assembly.h
Daniel Baumann ea34ddeea6
Adding upstream version 1:10.0.2+ds.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 14:27:05 +02:00

26 lines
448 B
C

#ifndef ASSEMBLY_H_
#define ASSEMBLY_H_
#define __ASSEMBLY__
#define __ALIGN .p2align 4, 0x90
#define ENTRY(name) \
__ALIGN; \
.globl name; \
name:
#define GLOBAL(name) \
.globl name; \
name:
#define ENTRY_END(name) GLOBAL(name##_end)
#define END(name) GLOBAL(name##_end)
/*
* gas produces size override prefix with which
* we are unhappy, lets make it hardcoded for
* 16 bit mode
*/
#define IRET .byte 0xcf
#endif /* ASSEMBLY_H_ */