hv: fix 'User name starts with underscore'

There are chances that names with leading underscore declared by
developers are conflict with the ones reserved for the compiler.

What this patch does:
- rename these functions/variables/macros starting with
  underscore to avoid such unintentational mistakes.
- remove gpr.h without any contents

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Shiqing Gao
2018-09-29 15:46:27 +08:00
committed by Xie, Nanlin
parent 390861a04c
commit 4544d28ee1
27 changed files with 75 additions and 95 deletions

View File

@@ -6,7 +6,7 @@
#ifndef RELOCATE_H
#define RELOCATE_H
extern void _relocate(void);
extern void relocate(void);
extern uint64_t get_hv_image_delta(void);
extern uint64_t get_hv_image_base(void);
extern uint64_t read_trampoline_sym(void *sym);
@@ -15,10 +15,10 @@ extern uint64_t prepare_trampoline(void);
/* external symbols that are helpful for relocation */
extern uint8_t _DYNAMIC[1];
extern const uint8_t _ld_trampoline_load;
extern uint8_t _ld_trampoline_start;
extern uint8_t _ld_trampoline_end;
extern const uint64_t _ld_trampoline_size;
extern const uint8_t ld_trampoline_load;
extern uint8_t ld_trampoline_start;
extern uint8_t ld_trampoline_end;
extern const uint64_t ld_trampoline_size;
extern uint8_t cpu_primary_start_32;
extern uint8_t cpu_primary_start_64;