I have an application that is using SYS/BIOS on the AM1806. In one of the tasks I am trying to get the processor into Privileged Mode so I can change the value of some of the H/W registers that can only be accessed in privileged mode. To go to privilige mode I am using the following instruction:
void
{ asm(" SWI #458752"); }
But when the SWI executes the code jumps to an exception in SYS/BIOS.
How do I get into privilige mode under SYS/BIOS?
Using CCS. V4.2.4
CPUSwitchToPrivilegedMode(void)