2018-06-22 23:15:12 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) <2018> Intel Corporation
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RELOCATE_H
|
|
|
|
#define RELOCATE_H
|
|
|
|
|
2018-09-29 15:46:27 +08:00
|
|
|
extern void relocate(void);
|
2018-06-22 23:15:12 +08:00
|
|
|
extern uint64_t get_hv_image_delta(void);
|
|
|
|
extern uint64_t get_hv_image_base(void);
|
|
|
|
|
|
|
|
/* external symbols that are helpful for relocation */
|
2018-07-31 14:05:57 +08:00
|
|
|
extern uint8_t _DYNAMIC[1];
|
2018-06-22 23:15:12 +08:00
|
|
|
|
2018-07-31 14:05:57 +08:00
|
|
|
extern uint8_t cpu_primary_start_32;
|
|
|
|
extern uint8_t cpu_primary_start_64;
|
2018-06-22 23:15:12 +08:00
|
|
|
|
|
|
|
#endif /* RELOCATE_H */
|