x86 needs sret stuff as well
add some x86 stuff here