[PATCH] x86: Some preparationary cleanup for stack trace