projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
powerpc/pseries: Use new defines when calling H_SET_MODE
[firefly-linux-kernel-4.4.55.git]
/
arch
/
powerpc
/
include
/
asm
/
plpar_wrappers.h
diff --git
a/arch/powerpc/include/asm/plpar_wrappers.h
b/arch/powerpc/include/asm/plpar_wrappers.h
index 12c32c5f533d924428714301f7482493df00e3c8..67859edbf8fd39aba27c8f8b7503533d6d9a3271 100644
(file)
--- a/
arch/powerpc/include/asm/plpar_wrappers.h
+++ b/
arch/powerpc/include/asm/plpar_wrappers.h
@@
-273,7
+273,7
@@
static inline long plpar_set_mode(unsigned long mflags, unsigned long resource,
static inline long enable_reloc_on_exceptions(void)
{
/* mflags = 3: Exceptions at 0xC000000000004000 */
static inline long enable_reloc_on_exceptions(void)
{
/* mflags = 3: Exceptions at 0xC000000000004000 */
- return plpar_set_mode(3,
3
, 0, 0);
+ return plpar_set_mode(3,
H_SET_MODE_RESOURCE_ADDR_TRANS_MODE
, 0, 0);
}
/*
}
/*
@@
-284,7
+284,7
@@
static inline long enable_reloc_on_exceptions(void)
* returns H_SUCCESS.
*/
static inline long disable_reloc_on_exceptions(void) {
* returns H_SUCCESS.
*/
static inline long disable_reloc_on_exceptions(void) {
- return plpar_set_mode(0,
3
, 0, 0);
+ return plpar_set_mode(0,
H_SET_MODE_RESOURCE_ADDR_TRANS_MODE
, 0, 0);
}
/*
}
/*
@@
-297,7
+297,7
@@
static inline long disable_reloc_on_exceptions(void) {
static inline long enable_big_endian_exceptions(void)
{
/* mflags = 0: big endian exceptions */
static inline long enable_big_endian_exceptions(void)
{
/* mflags = 0: big endian exceptions */
- return plpar_set_mode(0,
4
, 0, 0);
+ return plpar_set_mode(0,
H_SET_MODE_RESOURCE_LE
, 0, 0);
}
/*
}
/*
@@
-310,17
+310,17
@@
static inline long enable_big_endian_exceptions(void)
static inline long enable_little_endian_exceptions(void)
{
/* mflags = 1: little endian exceptions */
static inline long enable_little_endian_exceptions(void)
{
/* mflags = 1: little endian exceptions */
- return plpar_set_mode(1,
4
, 0, 0);
+ return plpar_set_mode(1,
H_SET_MODE_RESOURCE_LE
, 0, 0);
}
static inline long plapr_set_ciabr(unsigned long ciabr)
{
}
static inline long plapr_set_ciabr(unsigned long ciabr)
{
- return plpar_set_mode(0,
1
, ciabr, 0);
+ return plpar_set_mode(0,
H_SET_MODE_RESOURCE_SET_CIABR
, ciabr, 0);
}
static inline long plapr_set_watchpoint0(unsigned long dawr0, unsigned long dawrx0)
{
}
static inline long plapr_set_watchpoint0(unsigned long dawr0, unsigned long dawrx0)
{
- return plpar_set_mode(0,
2
, dawr0, dawrx0);
+ return plpar_set_mode(0,
H_SET_MODE_RESOURCE_SET_DAWR
, dawr0, dawrx0);
}
#endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */
}
#endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */