# HG changeset patch # User Shinji KONO # Date 1254472065 -32400 # Node ID 15e4ff86aa3ea64bee02bab42ec69fef6ccfff3d # Parent f785f63ae9409a5fdcc4cc04f8ef0f7c048b2b30 fix_relocation for function table... diff -r f785f63ae940 -r 15e4ff86aa3e TaskManager/Test/test_render/spe/DrawSpan.cc --- a/TaskManager/Test/test_render/spe/DrawSpan.cc Fri Oct 02 17:14:16 2009 +0900 +++ b/TaskManager/Test/test_render/spe/DrawSpan.cc Fri Oct 02 17:27:45 2009 +0900 @@ -395,6 +395,23 @@ return ret; } +void +fix_relocation((void**)addr,int count) +{ + unsigned int pc; + unsigned int label; + __asm__ __volatile__( +" brsl %0,____LLLL\n" +"____LLLL:" +" lia %1,____LLLL" + : "=r" (pc), "=r" (label)); + int offset = pc-label; + int i; + for(i=0;iget_param(0); int screen_width = smanager->get_param(1);