Deleted Added
full compact
asm.h (278629) asm.h (278631)
1/* $NetBSD: asm.h,v 1.5 2003/08/07 16:26:53 agc Exp $ */
2
3/*-
4 * Copyright (c) 1990 The Regents of the University of California.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * William Jolitz.

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

28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * from: @(#)asm.h 5.5 (Berkeley) 5/7/91
35 *
1/* $NetBSD: asm.h,v 1.5 2003/08/07 16:26:53 agc Exp $ */
2
3/*-
4 * Copyright (c) 1990 The Regents of the University of California.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * William Jolitz.

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

28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * from: @(#)asm.h 5.5 (Berkeley) 5/7/91
35 *
36 * $FreeBSD: stable/10/sys/arm/include/asm.h 278629 2015-02-12 19:32:07Z ian $
36 * $FreeBSD: stable/10/sys/arm/include/asm.h 278631 2015-02-12 19:45:07Z ian $
37 */
38
39#ifndef _MACHINE_ASM_H_
40#define _MACHINE_ASM_H_
41#include <sys/cdefs.h>
37 */
38
39#ifndef _MACHINE_ASM_H_
40#define _MACHINE_ASM_H_
41#include <sys/cdefs.h>
42#include <machine/sysreg.h>
42
43#define _C_LABEL(x) x
44#define _ASM_LABEL(x) x
45
46#ifndef _ALIGN_TEXT
47# define _ALIGN_TEXT .align 0
48#endif
49

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

216# define RETc(c) bx##c lr
217#else
218# define RET mov pc, lr
219# define RETeq moveq pc, lr
220# define RETne movne pc, lr
221# define RETc(c) mov##c pc, lr
222#endif
223
43
44#define _C_LABEL(x) x
45#define _ASM_LABEL(x) x
46
47#ifndef _ALIGN_TEXT
48# define _ALIGN_TEXT .align 0
49#endif
50

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

217# define RETc(c) bx##c lr
218#else
219# define RET mov pc, lr
220# define RETeq moveq pc, lr
221# define RETne movne pc, lr
222# define RETc(c) mov##c pc, lr
223#endif
224
225#if __ARM_ARCH >= 7
226#define ISB isb
227#define DSB dsb
228#define DMB dmb
229#elif __ARM_ARCH == 6
230#define ISB mcr CP15_CP15ISB
231#define DSB mcr CP15_CP15DSB
232#define DMB mcr CP15_CP15DMB
233#else
234#define ISB mcr CP15_CP15ISB
235#define DSB mcr CP15_CP15DSB /* DSB and DMB are the */
236#define DMB mcr CP15_CP15DSB /* same prior to v6.*/
237#endif
238
224#endif /* !_MACHINE_ASM_H_ */
239#endif /* !_MACHINE_ASM_H_ */