mpc83xx: implement ppcDW{load,store} accessors for e300c2
PATCH 1/1 mpc83xx: implement ppcDW{load,store} accessors for e300c2
e300c2 core based processors (MPC832x) don't have an FPU: provide alternative, gpr based accessor functions for code compatibility.
Suggested-by Joakim Tjernlund <[email protected]>
Signed-off-by Kim Phillips <[email protected]>
--- arch/ppc/cpu/mpc83xx/start.S | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
arch/ppc/cpu/mpc83xx/start.S +14 -0
@@ -139,14 +139,28 @@ get_pvr: .globl ppcDWstore ppcDWstore: +#if !defined(CONFIG_MPC832x) lfd 1, 0(r4) stfd 1, 0(r3) +#else + lwz r5, 0(r4) + stw r5, 0(r3) + lwz r5, 4(r4) + stw r5, 4(r3) +#endif blr .globl ppcDWload ppcDWload: +#if !defined(CONFIG_MPC832x) lfd 1, 0(r3) stfd 1, 0(r4) +#else + lwz r5, 0(r3) + stw r5, 0(r4) + lwz r5, 4(r3) + stw r5, 4(r4) +#endif blr #ifndef CONFIG_DEFAULT_IMMR
Signature · 21 lines
1.7.0.5
but 83xx is still missing (at least) the post_word_{load,store} functions:
post/libpost.a(post.o): In function `post_bootmode_get':
/home/kim/git/u-boot/post/post.c:107: undefined reference to `post_word_load'
post/libpost.a(post.o): In function `post_bootmode_test_on':
/home/kim/git/u-boot/post/post.c:154: undefined reference to `post_word_load'
/home/kim/git/u-boot/post/post.c:160: undefined reference to `post_word_store'
post/libpost.a(post.o): In function `post_bootmode_test_off':
/home/kim/git/u-boot/post/post.c:165: undefined reference to `post_word_load'
/home/kim/git/u-boot/post/post.c:169: undefined reference to `post_word_store'
post/libpost.a(post.o): In function `post_bootmode_init':
/home/kim/git/u-boot/post/post.c:90: undefined reference to `post_word_load'
/home/kim/git/u-boot/post/post.c:99: undefined reference to `post_word_store'
Michael, can you resubmit something more comprehensive, something that
builds for 83xx with CONFIG_POST turned on?
Kim