ia32_exception.S (209483) | ia32_exception.S (220451) |
---|---|
1/*- 2 * Copyright (c) 2003 Peter Wemm 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2003 Peter Wemm 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/amd64/ia32/ia32_exception.S 209483 2010-06-23 20:44:07Z kib $ | 26 * $FreeBSD: head/sys/amd64/ia32/ia32_exception.S 220451 2011-04-08 13:30:48Z jhb $ |
27 */ 28 29#include <machine/asmacros.h> 30 31#include "assym.s" 32 33 .text 34/* --- 6 unchanged lines hidden (view full) --- 41 */ 42 SUPERALIGN_TEXT 43IDTVEC(int0x80_syscall) 44 swapgs 45 pushq $2 /* sizeof "int 0x80" */ 46 subq $TF_ERR,%rsp /* skip over tf_trapno */ 47 movq %rdi,TF_RDI(%rsp) 48 movq PCPU(CURPCB),%rdi | 27 */ 28 29#include <machine/asmacros.h> 30 31#include "assym.s" 32 33 .text 34/* --- 6 unchanged lines hidden (view full) --- 41 */ 42 SUPERALIGN_TEXT 43IDTVEC(int0x80_syscall) 44 swapgs 45 pushq $2 /* sizeof "int 0x80" */ 46 subq $TF_ERR,%rsp /* skip over tf_trapno */ 47 movq %rdi,TF_RDI(%rsp) 48 movq PCPU(CURPCB),%rdi |
49 movb $0,PCB_FULL_IRET(%rdi) | 49 andl $~PCB_FULL_IRET,PCB_FLAGS(%rdi) |
50 movw %fs,TF_FS(%rsp) 51 movw %gs,TF_GS(%rsp) 52 movw %es,TF_ES(%rsp) 53 movw %ds,TF_DS(%rsp) 54 sti 55 movq %rsi,TF_RSI(%rsp) 56 movq %rdx,TF_RDX(%rsp) 57 movq %rcx,TF_RCX(%rsp) --- 18 unchanged lines hidden --- | 50 movw %fs,TF_FS(%rsp) 51 movw %gs,TF_GS(%rsp) 52 movw %es,TF_ES(%rsp) 53 movw %ds,TF_DS(%rsp) 54 sti 55 movq %rsi,TF_RSI(%rsp) 56 movq %rdx,TF_RDX(%rsp) 57 movq %rcx,TF_RCX(%rsp) --- 18 unchanged lines hidden --- |