Lines Matching refs:rsp

161 	cmpq	%r11, 24(%rsp)	/* Compare to saved r_rip on the stack */
164 cmpq %r11, 24(%rsp) /* Compare to saved r_rip on the stack */
218 subq $REGOFF_TRAPNO, %rsp; /* save regs */ \
219 movq %rax, REGOFF_RAX(%rsp); \
220 movq %rbx, REGOFF_RBX(%rsp); \
221 movq %rcx, REGOFF_RCX(%rsp); \
222 movq %rdx, REGOFF_RDX(%rsp); \
223 movq %rbp, REGOFF_RBP(%rsp); \
224 movq %rsp, %rbp; \
225 subq $16, %rsp; /* space for gdt */ \
226 sgdt 6(%rsp); \
227 movq 8(%rsp), %rcx; /* %rcx has gdt to match */ \
255 movq %rbp, %rsp; \
256 movq REGOFF_RBP(%rsp), %rbp; \
257 addq $REGOFF_TRAPNO, %rsp /* pop stack */
287 TRACE_REGS(%r12, %rsp, %rax, %rbx)
290 movq %rsp, %rbp
338 cmpw $KCS_SEL, 8(%rsp)
349 decq (%rsp)
383 cmpw $KCS_SEL, 8(%rsp)
387 movb $0, 12(%rsp) /* clear saved upcall_mask from %cs */
393 movq REGOFF_RIP(%rsp), %rdi
394 movq REGOFF_RSP(%rsp), %rsi
395 movq REGOFF_RAX(%rsp), %rdx
397 movq %rsp, %rsi
398 subq $8, %rsp
401 addq $16, %rsp
418 subq $16, %rsp /* make room for %rbp */
420 movq 24(%rsp), %rax /* load calling RIP */
422 movq %rax, 8(%rsp) /* store calling RIP */
423 movq 32(%rsp), %rax /* load calling CS */
424 movq %rax, 16(%rsp) /* store calling CS */
425 movq 40(%rsp), %rax /* load calling RFLAGS */
426 movq %rax, 24(%rsp) /* store calling RFLAGS */
427 movq 48(%rsp), %rax /* load calling RSP */
429 movq %rax, 32(%rsp) /* store calling RSP */
430 movq 56(%rsp), %rax /* load calling SS */
431 movq %rax, 40(%rsp) /* store calling SS */
432 movq 32(%rsp), %rax /* reload calling RSP */
448 movq 8(%rsp), %rax /* load calling RIP */
450 movq %rax, 8(%rsp) /* store calling RIP */
453 movq %rbp, 32(%rsp) /* store new %rsp */
465 incq (%rsp)
472 movq 32(%rsp), %rax /* load %rsp */
474 movq %rax, 8(%rsp) /* store calling RIP */
475 addq $8, 32(%rsp) /* adjust new %rsp */
487 cmpq $0, REGOFF_ERR(%rsp)
489 incq REGOFF_RIP(%rsp)
490 addq $REGOFF_RIP, %rsp
495 addq $REGOFF_RIP, %rsp
671 cmpw $KCS_SEL, REGOFF_CS(%rsp)
702 cmpw $KCS_SEL, 24(%rsp) /* did we come from kernel mode? */
853 subq $DESCTBR_SIZE, %rsp
854 sidt (%rsp)
856 cmpq %rax, DTR_BASE(%rsp)
859 movq %rax, DTR_BASE(%rsp)
860 movw $_MUL(NIDT, GATE_DESC_SIZE), DTR_LIMIT(%rsp)
861 lidt (%rsp)
865 1: addq $DESCTBR_SIZE, %rsp
880 movq %rsp, %rdi /* &regs */
1160 TRACE_REGS(%rdi, %rsp, %rbx, %rcx)
1163 movq %rsp, %rbp
1165 movq %rsp, %rdi /* arg0 = struct regs *rp */
1236 subq $2, (%rsp) /* XXX int insn 2-bytes */
1282 orq $PS_C, 24(%rsp) /* set carry bit in user flags */