x86: Add pt_regs register and stack access APIs