Deleted Added
full compact
reboot.S (165903) reboot.S (184547)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#if defined(SYSLIBC_SCCS) && !defined(lint)
34 .asciz "@(#)reboot.s 5.1 (Berkeley) 4/23/90"
35#endif /* SYSLIBC_SCCS and not lint */
36#include <machine/asm.h>
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#if defined(SYSLIBC_SCCS) && !defined(lint)
34 .asciz "@(#)reboot.s 5.1 (Berkeley) 4/23/90"
35#endif /* SYSLIBC_SCCS and not lint */
36#include <machine/asm.h>
37__FBSDID("$FreeBSD: head/lib/libc/amd64/sys/reboot.S 165903 2007-01-09 00:28:16Z imp $");
37__FBSDID("$FreeBSD: head/lib/libc/amd64/sys/reboot.S 184547 2008-11-02 01:10:54Z peter $");
38
39#include "SYS.h"
40
41 .weak _reboot
42 .set _reboot,__sys_reboot
43 .weak reboot
44 .set reboot,__sys_reboot
45ENTRY(__sys_reboot)
46 mov $SYS_reboot,%rax
47 KERNCALL
48 jb 1f
49 iretq
501:
51#ifdef PIC
52 movq PIC_GOT(HIDENAME(cerror)),%rdx
53 jmp *%rdx
54#else
55 jmp HIDENAME(cerror)
56#endif
38
39#include "SYS.h"
40
41 .weak _reboot
42 .set _reboot,__sys_reboot
43 .weak reboot
44 .set reboot,__sys_reboot
45ENTRY(__sys_reboot)
46 mov $SYS_reboot,%rax
47 KERNCALL
48 jb 1f
49 iretq
501:
51#ifdef PIC
52 movq PIC_GOT(HIDENAME(cerror)),%rdx
53 jmp *%rdx
54#else
55 jmp HIDENAME(cerror)
56#endif
57END(__sys_reboot)