mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-03 22:17:03 +00:00
Instead of "#include <x86/foo.h>", use "#include <asm/foo.h>". In other words, we are adopting the same practice in Linux kernel. Tracked-On: #5920 Signed-off-by: Liang Yi <yi.liang@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
25 lines
804 B
C
25 lines
804 B
C
/*
|
|
* Copyright (C) <2018> Intel Corporation
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef TRAMPOLINE_H
|
|
#define TRAMPOLINE_H
|
|
|
|
extern uint64_t read_trampoline_sym(const void *sym);
|
|
extern void write_trampoline_sym(const void *sym, uint64_t val);
|
|
extern void write_trampoline_stack_sym(uint16_t pcpu_id);
|
|
extern uint64_t prepare_trampoline(void);
|
|
extern uint64_t get_trampoline_start16_paddr(void);
|
|
|
|
/* external symbols that are helpful for relocation */
|
|
extern uint8_t trampoline_fixup_cs;
|
|
extern uint8_t trampoline_fixup_ip;
|
|
extern uint8_t trampoline_fixup_target;
|
|
extern uint8_t cpu_boot_page_tables_start;
|
|
extern uint8_t cpu_boot_page_tables_ptr;
|
|
extern uint8_t trampoline_pdpt_addr;
|
|
extern uint8_t trampoline_gdt_ptr;
|
|
extern uint8_t trampoline_start64_fixup;
|
|
#endif /* TRAMPOLINE_H */
|