mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 04:31:27 +00:00
Create a new arch-specific subdirectory to contain architecture-specific code
and includes.
The Makefile now adds various arch-specific objects based on detected
architecture. That aside, this patch should only contain code moves. These
include:
- x86-specific kvm_cpu setup, kernel loading, memory setup etc. now in
x86/kvm{-cpu}.c
- BIOS now lives in x86/bios/
- ioport setup
- KVM extensions are asserted in arch-specific kvm.c now, so each architecture
can manage its own dependencies.
- Various architecture-specific #defines are moved into $(ARCH)/include/kvm{-cpu}.h
such as struct kvm_cpu, KVM_NR_CPUS, KVM_32BIT_GAP_SIZE.
Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
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_ */
|