summaryrefslogtreecommitdiffstats
path: root/include/pbl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pbl.h')
-rw-r--r--include/pbl.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/include/pbl.h b/include/pbl.h
index 7dc4fa3092..0633e340be 100644
--- a/include/pbl.h
+++ b/include/pbl.h
@@ -6,19 +6,22 @@
#ifndef __PBL_H__
#define __PBL_H__
+#ifdef __PBL__
+#define IN_PBL 1
+#else
+#define IN_PBL 0
+#endif
+
+#ifndef __ASSEMBLY__
+
#include <linux/types.h>
+#include <linux/compiler.h>
extern unsigned long free_mem_ptr;
extern unsigned long free_mem_end_ptr;
void pbl_barebox_uncompress(void *dest, void *compressed_start, unsigned int len);
-#ifdef __PBL__
-#define IN_PBL 1
-#else
-#define IN_PBL 0
-#endif
-
void fdt_find_mem(const void *fdt, unsigned long *membase, unsigned long *memsize);
struct fdt_device_id {
@@ -32,5 +35,9 @@ fdt_device_get_match_data(const void *fdt, const char *nodepath,
int pbl_barebox_verify(const void *compressed_start, unsigned int len,
const void *hash, unsigned int hash_len);
+#endif
+
+void __noreturn barebox_pbl_entry(ulong, ulong, void *);
+
#endif /* __PBL_H__ */