diff options
Diffstat (limited to 'usr/src/lib/libc/amd64/sys/getcontext.s')
| -rw-r--r-- | usr/src/lib/libc/amd64/sys/getcontext.s | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/usr/src/lib/libc/amd64/sys/getcontext.s b/usr/src/lib/libc/amd64/sys/getcontext.s index b3ffb4973e..b5aedfe8c5 100644 --- a/usr/src/lib/libc/amd64/sys/getcontext.s +++ b/usr/src/lib/libc/amd64/sys/getcontext.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,8 +18,9 @@ * * CDDL HEADER END */ + /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -46,7 +46,7 @@ #define GETCONTEXT_IMPL(offset) \ pushq %rdi; /* preserve the ucontext_t pointer */ \ - call __getcontext_syscall; \ + call __getcontext; \ /* call getcontext: syscall */ \ popq %rdx; \ andl %eax, %eax; /* if (error_return_from_syscall) */ \ @@ -75,8 +75,6 @@ * getcontext(ucontext_t *ucp) */ - ANSI_PRAGMA_WEAK2(_private_getcontext,getcontext,function) - ENTRY(getcontext) GETCONTEXT_IMPL(0) ret @@ -93,6 +91,6 @@ /* call setcontext */ popq %rdi - call _private_setcontext /* call setcontext */ + call setcontext ret SET_SIZE(swapcontext) |
