1328653Shselasky/*-
2328653Shselasky * Copyright (c) 2017 Mark Johnston <markj@FreeBSD.org>
3328653Shselasky *
4328653Shselasky * Redistribution and use in source and binary forms, with or without
5328653Shselasky * modification, are permitted provided that the following conditions are
6328653Shselasky * met:
7328653Shselasky * 1. Redistributions of source code must retain the above copyright
8328653Shselasky *    notice, this list of conditions and the following disclaimer.
9328653Shselasky * 2. Redistributions in binary form must reproduce the above copyright
10328653Shselasky *    notice, this list of conditions and the following disclaimer in
11328653Shselasky *    the documentation and/or other materials provided with the
12328653Shselasky *    distribution.
13328653Shselasky *
14328653Shselasky * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15328653Shselasky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16328653Shselasky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17328653Shselasky * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18328653Shselasky * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19328653Shselasky * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20328653Shselasky * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21328653Shselasky * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22328653Shselasky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23328653Shselasky * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24328653Shselasky * SUCH DAMAGE.
25328653Shselasky *
26328653Shselasky * $FreeBSD: stable/11/sys/compat/linuxkpi/common/include/asm/msr.h 335420 2018-06-20 06:42:51Z hselasky $
27328653Shselasky */
28328653Shselasky
29328653Shselasky#ifndef _ASM_MSR_H_
30328653Shselasky#define	_ASM_MSR_H_
31328653Shselasky
32328653Shselasky#include <machine/cpufunc.h>
33328653Shselasky
34328653Shselasky#define	rdmsrl(msr, val)	((val) = rdmsr(msr))
35335420Shselasky#define	rdmsrl_safe(msr, val)	rdmsr_safe(msr, val)
36328653Shselasky
37328653Shselasky#endif /* _ASM_MSR_H_ */
38