Use void* for $sp.