Skip to content

Commit 60666de

Browse files
mikeympe
authored andcommitted
powerpc/pseries: Use new defines when calling H_SET_MODE
Now that we define these in the KVM code, use these defines when we call H_SET_MODE. No functional change. Signed-off-by: Michael Neuling <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent dfdac39 commit 60666de

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arch/powerpc/include/asm/plpar_wrappers.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static inline long plpar_set_mode(unsigned long mflags, unsigned long resource,
273273
static inline long enable_reloc_on_exceptions(void)
274274
{
275275
/* mflags = 3: Exceptions at 0xC000000000004000 */
276-
return plpar_set_mode(3, 3, 0, 0);
276+
return plpar_set_mode(3, H_SET_MODE_RESOURCE_ADDR_TRANS_MODE, 0, 0);
277277
}
278278

279279
/*
@@ -284,7 +284,7 @@ static inline long enable_reloc_on_exceptions(void)
284284
* returns H_SUCCESS.
285285
*/
286286
static inline long disable_reloc_on_exceptions(void) {
287-
return plpar_set_mode(0, 3, 0, 0);
287+
return plpar_set_mode(0, H_SET_MODE_RESOURCE_ADDR_TRANS_MODE, 0, 0);
288288
}
289289

290290
/*
@@ -297,7 +297,7 @@ static inline long disable_reloc_on_exceptions(void) {
297297
static inline long enable_big_endian_exceptions(void)
298298
{
299299
/* mflags = 0: big endian exceptions */
300-
return plpar_set_mode(0, 4, 0, 0);
300+
return plpar_set_mode(0, H_SET_MODE_RESOURCE_LE, 0, 0);
301301
}
302302

303303
/*
@@ -310,17 +310,17 @@ static inline long enable_big_endian_exceptions(void)
310310
static inline long enable_little_endian_exceptions(void)
311311
{
312312
/* mflags = 1: little endian exceptions */
313-
return plpar_set_mode(1, 4, 0, 0);
313+
return plpar_set_mode(1, H_SET_MODE_RESOURCE_LE, 0, 0);
314314
}
315315

316316
static inline long plapr_set_ciabr(unsigned long ciabr)
317317
{
318-
return plpar_set_mode(0, 1, ciabr, 0);
318+
return plpar_set_mode(0, H_SET_MODE_RESOURCE_SET_CIABR, ciabr, 0);
319319
}
320320

321321
static inline long plapr_set_watchpoint0(unsigned long dawr0, unsigned long dawrx0)
322322
{
323-
return plpar_set_mode(0, 2, dawr0, dawrx0);
323+
return plpar_set_mode(0, H_SET_MODE_RESOURCE_SET_DAWR, dawr0, dawrx0);
324324
}
325325

326326
#endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */

0 commit comments

Comments
 (0)