aboutsummaryrefslogtreecommitdiff
path: root/hw/microblaze_boot.h
diff options
context:
space:
mode:
authorPeter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>2012-03-04 21:03:51 +1000
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2012-03-05 23:00:14 +0100
commitd94e743476bf7d0d55ea6f4a90760054ce959030 (patch)
treee765b7116389e99a09e2d847ee5653c38b2eb916 /hw/microblaze_boot.h
parent27a9476cf75c4e147cb7d8c10c415928b3791b91 (diff)
microblaze: factored out common boot code
factored out the copy-pasted common boot code from the two microblaze platforms into a dedicated microblaze bootloader (microblaze_boot.o). Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/microblaze_boot.h')
-rw-r--r--hw/microblaze_boot.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/microblaze_boot.h b/hw/microblaze_boot.h
new file mode 100644
index 0000000000..69d4ac635b
--- /dev/null
+++ b/hw/microblaze_boot.h
@@ -0,0 +1,10 @@
+#ifndef __MICROBLAZE_BOOT__
+#define __MICROBLAZE_BOOT__
+
+#include "hw.h"
+
+void microblaze_load_kernel(CPUState *env, target_phys_addr_t ddr_base,
+ uint32_t ramsize, const char *dtb_filename,
+ void (*machine_cpu_reset)(CPUState *));
+
+#endif /* __MICROBLAZE_BOOT __ */