- #define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) \\r
- __asm volatile( "mov %0, %%eax \n\t" \\r
- "bsr %%eax, %%eax \n\t" \\r
- "mov %%eax, %1 \n\t" \\r
- :"=r"(uxTopPriority) : "r"(uxReadyPriorities) : "eax" )\r
+ #define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) \\r
+ __asm volatile( "bsr %1, %0\n\t" \\r
+ :"=r"(uxTopPriority) : "rm"(uxReadyPriorities) : "cc" )\r