提交 966b11c7 编写于 作者: S Stefan Roese

powerpc: Extract EPAPR_MAGIC constants into processor.h

By extracting these defines into a header, they can be re-used by other
C sources as well. This will be done by the SPL framework OS boot
support.
Signed-off-by: NStefan Roese <sr@denx.de>
上级 ce12a8c1
...@@ -358,7 +358,6 @@ __second_half_boot_page: ...@@ -358,7 +358,6 @@ __second_half_boot_page:
lwz r14,0(r3) lwz r14,0(r3)
#endif #endif
#define EPAPR_MAGIC 0x45504150
#define ENTRY_ADDR_UPPER 0 #define ENTRY_ADDR_UPPER 0
#define ENTRY_ADDR_LOWER 4 #define ENTRY_ADDR_LOWER 4
#define ENTRY_R3_UPPER 8 #define ENTRY_R3_UPPER 8
......
...@@ -1342,4 +1342,10 @@ void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val); ...@@ -1342,4 +1342,10 @@ void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);
#endif #endif
#endif /* CONFIG_MACH_SPECIFIC */ #endif /* CONFIG_MACH_SPECIFIC */
#if defined(CONFIG_MPC85xx) || defined(CONFIG_440)
#define EPAPR_MAGIC (0x45504150)
#else
#define EPAPR_MAGIC (0x65504150)
#endif
#endif /* __ASM_PPC_PROCESSOR_H */ #endif /* __ASM_PPC_PROCESSOR_H */
...@@ -87,12 +87,6 @@ static void boot_jump_linux(bootm_headers_t *images) ...@@ -87,12 +87,6 @@ static void boot_jump_linux(bootm_headers_t *images)
* r8: 0 * r8: 0
* r9: 0 * r9: 0
*/ */
#if defined(CONFIG_MPC85xx) || defined(CONFIG_440)
#define EPAPR_MAGIC (0x45504150)
#else
#define EPAPR_MAGIC (0x65504150)
#endif
debug (" Booting using OF flat tree...\n"); debug (" Booting using OF flat tree...\n");
WATCHDOG_RESET (); WATCHDOG_RESET ();
(*kernel) ((bd_t *)of_flat_tree, 0, 0, EPAPR_MAGIC, (*kernel) ((bd_t *)of_flat_tree, 0, 0, EPAPR_MAGIC,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册