Made cache flush architectural dependend

Avoid context-switch for call on the zynq platform