fsp1_0/fsp_util: Rename global symbol find_fsp
To avoid error with symbol redefinition (using clang): src/drivers/intel/fsp1_0/fsp_util.c:111:22: error: invalid symbol redefinition ".global find_fsp\n\t" Rename the asm global symbol to find_fsp_bypass_prologue and fix jmp. Change-Id: I84c152f9a580fdfc40e9f6e998d2d6484b7f47df Signed-off-by: Damien Zammit <damien@zamaudio.com> Reviewed-on: https://review.coreboot.org/21353 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
1fbc1927b1
commit
f796dd86a7
@ -32,7 +32,7 @@ cache_as_ram:
|
|||||||
* Make a fake stack that has the return value back to this code.
|
* Make a fake stack that has the return value back to this code.
|
||||||
*/
|
*/
|
||||||
lea fake_fsp_stack, %esp
|
lea fake_fsp_stack, %esp
|
||||||
jmp find_fsp
|
jmp find_fsp_bypass_prologue
|
||||||
find_fsp_ret:
|
find_fsp_ret:
|
||||||
/* Save the FSP location */
|
/* Save the FSP location */
|
||||||
mov %eax, %ebp
|
mov %eax, %ebp
|
||||||
|
@ -108,8 +108,8 @@ volatile u8 * find_fsp ()
|
|||||||
|
|
||||||
/* Entry point for CAR assembly routine */
|
/* Entry point for CAR assembly routine */
|
||||||
__asm__ __volatile__ (
|
__asm__ __volatile__ (
|
||||||
".global find_fsp\n\t"
|
".global find_fsp_bypass_prologue\n\t"
|
||||||
"find_fsp:\n\t"
|
"find_fsp_bypass_prologue:\n\t"
|
||||||
);
|
);
|
||||||
#else
|
#else
|
||||||
volatile u8 *fsp_ptr;
|
volatile u8 *fsp_ptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user