Files
kvmtool/include/kvm/assembly.h
T
Cyrill Gorcunov 28ce0d664b kvm, bios: BIOS code redesign
Instead of keeping bios code in various bin junks make
it to host in one binary blob. This blob gets copied
to a predefined place at startup and IVT handlers set
as appropriate.

Also we need to generate header file which will contain
BIOS tourine offsets for symbols being used.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2015-06-01 16:39:40 +01:00

25 lines
426 B
C

#ifndef ASSEMBLY_H_
#define ASSEMBLY_H_
#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_ */