Add function prologue, fix pointer load on Sparc64 host