Skip to content

Commit

Permalink
powerpc: Extract EPAPR_MAGIC constants into processor.h
Browse files Browse the repository at this point in the history
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: Stefan Roese <[email protected]>
  • Loading branch information
stroese committed Dec 5, 2012
1 parent ce12a8c commit 966b11c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion arch/powerpc/cpu/mpc85xx/release.S
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ __second_half_boot_page:
lwz r14,0(r3)
#endif

#define EPAPR_MAGIC 0x45504150
#define ENTRY_ADDR_UPPER 0
#define ENTRY_ADDR_LOWER 4
#define ENTRY_R3_UPPER 8
Expand Down
6 changes: 6 additions & 0 deletions arch/powerpc/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -1342,4 +1342,10 @@ void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);
#endif
#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 */
6 changes: 0 additions & 6 deletions arch/powerpc/lib/bootm.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ static void boot_jump_linux(bootm_headers_t *images)
* r8: 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");
WATCHDOG_RESET ();
(*kernel) ((bd_t *)of_flat_tree, 0, 0, EPAPR_MAGIC,
Expand Down

0 comments on commit 966b11c

Please sign in to comment.