Deleted Added
full compact
cpufunc.h (280364) cpufunc.h (281494)
1/*-
2 * Copyright (c) 2014 Andrew Turner
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

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

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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/arm64/include/cpufunc.h 280364 2015-03-23 11:54:56Z andrew $
26 * $FreeBSD: head/sys/arm64/include/cpufunc.h 281494 2015-04-13 14:43:10Z andrew $
27 */
28
29#ifndef _MACHINE_CPUFUNC_H_
30#define _MACHINE_CPUFUNC_H_
31
32#ifdef _KERNEL
33
34#include <machine/armreg.h>

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

104 uint64_t mpidr;
105
106 mpidr = READ_SPECIALREG(mpidr_el1);
107
108 return (mpidr);
109}
110
111#define cpu_nullop() arm64_nullop()
27 */
28
29#ifndef _MACHINE_CPUFUNC_H_
30#define _MACHINE_CPUFUNC_H_
31
32#ifdef _KERNEL
33
34#include <machine/armreg.h>

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

104 uint64_t mpidr;
105
106 mpidr = READ_SPECIALREG(mpidr_el1);
107
108 return (mpidr);
109}
110
111#define cpu_nullop() arm64_nullop()
112#define cpufunc_nullop() arm64_nullop()
112#define cpu_setttb(a) arm64_setttb(a)
113
114#define cpu_tlb_flushID() arm64_tlb_flushID()
115#define cpu_tlb_flushID_SE(e) arm64_tlb_flushID_SE(e)
116
117#define cpu_dcache_wbinv_range(a, s) arm64_dcache_wbinv_range((a), (s))
118#define cpu_dcache_inv_range(a, s) arm64_dcache_inv_range((a), (s))
119#define cpu_dcache_wb_range(a, s) arm64_dcache_wb_range((a), (s))

--- 16 unchanged lines hidden ---
113#define cpu_setttb(a) arm64_setttb(a)
114
115#define cpu_tlb_flushID() arm64_tlb_flushID()
116#define cpu_tlb_flushID_SE(e) arm64_tlb_flushID_SE(e)
117
118#define cpu_dcache_wbinv_range(a, s) arm64_dcache_wbinv_range((a), (s))
119#define cpu_dcache_inv_range(a, s) arm64_dcache_inv_range((a), (s))
120#define cpu_dcache_wb_range(a, s) arm64_dcache_wb_range((a), (s))

--- 16 unchanged lines hidden ---