ARM: rockchip: fix build without pie

This commit is contained in:
黄涛
2014-03-26 17:47:24 +08:00
parent 031464c14a
commit 9f192feb9c
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -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