Deleted Added
full compact
asmacros.h (190620) asmacros.h (209483)
1/*-
2 * Copyright (c) 1993 The Regents of the University of California.
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

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 1993 The Regents of the University of California.
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

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/amd64/include/asmacros.h 190620 2009-04-01 13:09:26Z kib $
29 * $FreeBSD: head/sys/amd64/include/asmacros.h 209483 2010-06-23 20:44:07Z kib $
30 */
31
32#ifndef _MACHINE_ASMACROS_H_
33#define _MACHINE_ASMACROS_H_
34
35#include <sys/cdefs.h>
36
37/* XXX too much duplication in various asm*.h's. */

--- 123 unchanged lines hidden (view full) ---

161 movq %r12,TF_R12(%rsp) ; \
162 movq %r13,TF_R13(%rsp) ; \
163 movq %r14,TF_R14(%rsp) ; \
164 movq %r15,TF_R15(%rsp) ; \
165 movw %fs,TF_FS(%rsp) ; \
166 movw %gs,TF_GS(%rsp) ; \
167 movw %es,TF_ES(%rsp) ; \
168 movw %ds,TF_DS(%rsp) ; \
30 */
31
32#ifndef _MACHINE_ASMACROS_H_
33#define _MACHINE_ASMACROS_H_
34
35#include <sys/cdefs.h>
36
37/* XXX too much duplication in various asm*.h's. */

--- 123 unchanged lines hidden (view full) ---

161 movq %r12,TF_R12(%rsp) ; \
162 movq %r13,TF_R13(%rsp) ; \
163 movq %r14,TF_R14(%rsp) ; \
164 movq %r15,TF_R15(%rsp) ; \
165 movw %fs,TF_FS(%rsp) ; \
166 movw %gs,TF_GS(%rsp) ; \
167 movw %es,TF_ES(%rsp) ; \
168 movw %ds,TF_DS(%rsp) ; \
169 movl $TF_HASSEGS,TF_FLAGS(%rsp)
169 movl $TF_HASSEGS,TF_FLAGS(%rsp) ; \
170 cld
170
171#define POP_FRAME \
172 movq TF_RDI(%rsp),%rdi ; \
173 movq TF_RSI(%rsp),%rsi ; \
174 movq TF_RDX(%rsp),%rdx ; \
175 movq TF_RCX(%rsp),%rcx ; \
176 movq TF_R8(%rsp),%r8 ; \
177 movq TF_R9(%rsp),%r9 ; \

--- 26 unchanged lines hidden ---
171
172#define POP_FRAME \
173 movq TF_RDI(%rsp),%rdi ; \
174 movq TF_RSI(%rsp),%rsi ; \
175 movq TF_RDX(%rsp),%rdx ; \
176 movq TF_RCX(%rsp),%rcx ; \
177 movq TF_R8(%rsp),%r8 ; \
178 movq TF_R9(%rsp),%r9 ; \

--- 26 unchanged lines hidden ---