aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/processor_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/processor_32.h')
-rw-r--r--include/asm-x86/processor_32.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h
index 3c67eacb3168..c85400fe58c4 100644
--- a/include/asm-x86/processor_32.h
+++ b/include/asm-x86/processor_32.h
@@ -398,14 +398,14 @@ struct thread_struct {
398 398
399#define start_thread(regs, new_eip, new_esp) do { \ 399#define start_thread(regs, new_eip, new_esp) do { \
400 __asm__("movl %0,%%gs": :"r" (0)); \ 400 __asm__("movl %0,%%gs": :"r" (0)); \
401 regs->xfs = 0; \ 401 regs->fs = 0; \
402 set_fs(USER_DS); \ 402 set_fs(USER_DS); \
403 regs->xds = __USER_DS; \ 403 regs->ds = __USER_DS; \
404 regs->xes = __USER_DS; \ 404 regs->es = __USER_DS; \
405 regs->xss = __USER_DS; \ 405 regs->ss = __USER_DS; \
406 regs->xcs = __USER_CS; \ 406 regs->cs = __USER_CS; \
407 regs->eip = new_eip; \ 407 regs->ip = new_eip; \
408 regs->esp = new_esp; \ 408 regs->sp = new_esp; \
409} while (0) 409} while (0)
410 410
411/* Forward declaration, a strange C thing */ 411/* Forward declaration, a strange C thing */
@@ -440,7 +440,7 @@ unsigned long get_wchan(struct task_struct *p);
440 * is accessable even if the CPU haven't stored the SS/ESP registers 440 * is accessable even if the CPU haven't stored the SS/ESP registers
441 * on the stack (interrupt gate does not save these registers 441 * on the stack (interrupt gate does not save these registers
442 * when switching to the same priv ring). 442 * when switching to the same priv ring).
443 * Therefore beware: accessing the xss/esp fields of the 443 * Therefore beware: accessing the ss/esp fields of the
444 * "struct pt_regs" is possible, but they may contain the 444 * "struct pt_regs" is possible, but they may contain the
445 * completely wrong values. 445 * completely wrong values.
446 */ 446 */
@@ -451,8 +451,8 @@ unsigned long get_wchan(struct task_struct *p);
451 __regs__ - 1; \ 451 __regs__ - 1; \
452}) 452})
453 453
454#define KSTK_EIP(task) (task_pt_regs(task)->eip) 454#define KSTK_EIP(task) (task_pt_regs(task)->ip)
455#define KSTK_ESP(task) (task_pt_regs(task)->esp) 455#define KSTK_ESP(task) (task_pt_regs(task)->sp)
456 456
457 457
458struct microcode_header { 458struct microcode_header {