mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 04:31:27 +00:00
For x86 the files that become the BIOS blob are compiled with -m32.
Although we avoid including any system libraries, we use some headers
from /usr/include, which asks for trouble if compiling on a x86-64
multiarch system (Debian/Ubuntu). Without 32-bit compat headers
installed there, the compiler will not find the right files.
However as the BIOS code is actually a self-contained binary without
any relationship to the Linux userland, it should not use or rely
on Linux system headers.
Replace includes of linux/types.h in BIOS code with asm/bios/types.h,
which simply contains the u{8,16,32,64} data types needed by the code.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
17 lines
280 B
C
17 lines
280 B
C
#ifndef KVM__VESA_H
|
|
#define KVM__VESA_H
|
|
|
|
#define VESA_WIDTH 640
|
|
#define VESA_HEIGHT 480
|
|
|
|
#define VESA_MEM_ADDR 0xd0000000
|
|
#define VESA_MEM_SIZE (4*VESA_WIDTH*VESA_HEIGHT)
|
|
#define VESA_BPP 32
|
|
|
|
struct kvm;
|
|
struct biosregs;
|
|
|
|
struct framebuffer *vesa__init(struct kvm *self);
|
|
|
|
#endif
|