So, what value I should use to enable privileged mode of BeagleBoneBlack?
void CPUSwitchToPrivilegedMode(void)
{
asm(" SWI ??????");
}
On Saturday, August 2, 2014 6:01:30 PM UTC+5:30, William Hermans wrote:
>
> *Can anyone help me to fix this problem? Is it a gcc compiler issue or
>> issue with the code.*
>>
>
> Aside from 458752 being about 7 times to big to fit in a 16 bit field ?
>
>
> On Sat, Aug 2, 2014 at 4:00 AM, manish <[email protected] <javascript:>>
> wrote:
>
>>
>> Hi,
>>
>> I am trying to compile the uart code comes
>> with AM335X_StarterWare_02_00_01_01 for BeagleBoneBlack.
>> But I get below error :
>>
>> /tmp/ccKSsL5N.s:43: Error: invalid swi expression
>> /tmp/ccKSsL5N.s:43: Error: value of 0000000000070000 too large for field
>> of 2 bytes at 0000000000000004
>>
>>
>> this error comes for the below code:
>>
>>
>> ******************************************************************************/
>> /**
>> * \brief This API can be used to switch from user mode to privileged
>> mode
>> * The priviledge mode will be system mode. System mode will
>> share
>> * the same resources as user mode, but with privileges.
>> *
>> * \param None.
>> *
>> * \return None.
>> *
>> * Note : All the access to system configuration which needs privileged
>> access
>> * can be done after calling this API.
>> **/
>> void CPUSwitchToPrivilegedMode(void)
>> {
>> asm(" SWI 458752");
>> }
>>
>> I do not see any issue with this instructions as the last bits should be
>> set to 1 to operate in privileged mode.
>> Please refer http://www.riscos.com/support/developers/prm/swis.html#57602
>>
>>
>> Can anyone help me to fix this problem? Is it a gcc compiler issue or
>> issue with the code.
>>
>> Thanks & Regards,
>> Manish
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.