Tue Nov 28 09:06:25 2017 UTC ()
KNF. use tab


(ryo)
diff -r1.1 -r1.2 src/lib/libc/arch/aarch64/gen/_setjmp.S

cvs diff -r1.1 -r1.2 src/lib/libc/arch/aarch64/gen/_setjmp.S (expand / switch to unified diff)

--- src/lib/libc/arch/aarch64/gen/_setjmp.S 2014/08/10 05:47:36 1.1
+++ src/lib/libc/arch/aarch64/gen/_setjmp.S 2017/11/28 09:06:25 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: _setjmp.S,v 1.1 2014/08/10 05:47:36 matt Exp $ */ 1/* $NetBSD: _setjmp.S,v 1.2 2017/11/28 09:06:25 ryo Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2014 The NetBSD Foundation, Inc. 4 * Copyright (c) 2014 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Matt Thomas of 3am Software Foundry. 8 * by Matt Thomas of 3am Software Foundry.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -61,28 +61,28 @@ ENTRY(_setjmp) @@ -61,28 +61,28 @@ ENTRY(_setjmp)
61 stp x23, x24, [x0, #_JB_X23] 61 stp x23, x24, [x0, #_JB_X23]
62 stp x25, x26, [x0, #_JB_X25] 62 stp x25, x26, [x0, #_JB_X25]
63 stp x27, x28, [x0, #_JB_X27] 63 stp x27, x28, [x0, #_JB_X27]
64 stp x29, x30, [x0, #_JB_X29] 64 stp x29, x30, [x0, #_JB_X29]
65 65
66 mrs x5, tpidr_el0 66 mrs x5, tpidr_el0
67 str x5, [x0, #_JB_TPIDR] 67 str x5, [x0, #_JB_TPIDR]
68 68
69 stp d8, d9, [x0, #_JB_D8] 69 stp d8, d9, [x0, #_JB_D8]
70 stp d10, d11, [x0, #_JB_D10] 70 stp d10, d11, [x0, #_JB_D10]
71 stp d12, d13, [x0, #_JB_D12] 71 stp d12, d13, [x0, #_JB_D12]
72 stp d14, d15, [x0, #_JB_D14] 72 stp d14, d15, [x0, #_JB_D14]
73 73
74 mov x0, xzr 74 mov x0, xzr
75 ret 75 ret
76END(_setjmp) 76END(_setjmp)
77 77
78ENTRY(_longjmp) 78ENTRY(_longjmp)
79 adrp x7, .L_MAGIC 79 adrp x7, .L_MAGIC
80 ldr x7, [x7, #:lo12:.L_MAGIC] 80 ldr x7, [x7, #:lo12:.L_MAGIC]
81 81
82 ldp x2, x3, [x0, #_JB_MAGIC] 82 ldp x2, x3, [x0, #_JB_MAGIC]
83 ldp x4, x5, [x0, #_JB_X29] 83 ldp x4, x5, [x0, #_JB_X29]
84 84
85 cbz x3, .Lbotch 85 cbz x3, .Lbotch
86 cbz x4, .Lbotch 86 cbz x4, .Lbotch
87 cbz x5, .Lbotch 87 cbz x5, .Lbotch
88 cmp x2, x7 88 cmp x2, x7
@@ -96,22 +96,22 @@ ENTRY(_longjmp) @@ -96,22 +96,22 @@ ENTRY(_longjmp)
96 96
97 ldr x5, [x0, #_JB_TPIDR] 97 ldr x5, [x0, #_JB_TPIDR]
98 msr tpidr_el0, x5 98 msr tpidr_el0, x5
99 99
100 ldp d8, d9, [x0, #_JB_D8] 100 ldp d8, d9, [x0, #_JB_D8]
101 ldp d10, d11, [x0, #_JB_D10] 101 ldp d10, d11, [x0, #_JB_D10]
102 ldp d12, d13, [x0, #_JB_D12] 102 ldp d12, d13, [x0, #_JB_D12]
103 ldp d14, d15, [x0, #_JB_D14] 103 ldp d14, d15, [x0, #_JB_D14]
104 104
105 mov sp, x3 105 mov sp, x3
106 mov x29, x4 106 mov x29, x4
107 mov x30, x5 107 mov x30, x5
108 108
109 mov x0, x1 109 mov x0, x1
110 ret 110 ret
111 111
112 /* validation failed, die die die. */ 112 /* validation failed, die die die. */
113.Lbotch: 113.Lbotch:
114 bl _C_LABEL(longjmperror) 114 bl _C_LABEL(longjmperror)
115 bl _C_LABEL(abort) 115 bl _C_LABEL(abort)
1161: b 1b /* Cannot get here */ 1161: b 1b /* Cannot get here */
117END(_longjmp) 117END(_longjmp)