mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-30 13:51:03 +00:00
28ce0d664b
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>
25 lines
426 B
C
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_ */
|