AnsweredAssumed Answered

FSL_BOOKE_MAS3(rpn, user, perms)

Question asked by H VO on Sep 12, 2016
Latest reply on Sep 13, 2016 by Serguei Podiatchev

in uboot code, FSL_BOOKE_MAS3 is defined as:

 

#define MAS3_RPN 0xFFFFF000
#define MAS3_U0  0x00000200
#define MAS3_U1  0x00000100
#define MAS3_U2  0x00000080
#define MAS3_U3  0x00000040
#define MAS3_UX  0x00000020
#define MAS3_SX  0x00000010
#define MAS3_UW  0x00000008
#define MAS3_SW  0x00000004
#define MAS3_UR  0x00000002
#define MAS3_SR  0x00000001

 

#define FSL_BOOKE_MAS3(rpn, user, perms) \
  (((rpn) & MAS3_RPN) | (user) | (perms))

 

what does "user" do?  do i need to set it if i want to run in user mode?  that's not the same as the permissions "UX, UW and UR", right?

 

Thanks!

Outcomes