mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
ARM: rockchip: fix build without pie
This commit is contained in:
@@ -156,6 +156,7 @@ void *rockchip_sram_virt = NULL;
|
||||
size_t rockchip_sram_size = 0;
|
||||
char *rockchip_sram_stack = NULL;
|
||||
|
||||
#ifdef CONFIG_PIE
|
||||
int __init rockchip_pie_init(void)
|
||||
{
|
||||
struct device_node *np;
|
||||
@@ -173,6 +174,7 @@ int __init rockchip_pie_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool is_panic = false;
|
||||
|
||||
|
||||
@@ -44,6 +44,11 @@ extern char __pie_data(rk3188) __pie_rk3188_sram_stack[1024];
|
||||
#define __sramlocalfunc RK_PIE
|
||||
|
||||
extern void call_with_stack(void (*fn)(void *), void *arg, void *sp);
|
||||
|
||||
#ifdef CONFIG_PIE
|
||||
extern int __init rockchip_pie_init(void);
|
||||
#else
|
||||
static inline int rockchip_pie_init(void) { return -1; }
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user