Replaced asm statements with __asm for building with CrossWorks V2.

pull/4/head
Richard Barry 16 years ago
parent c134405914
commit 8f26ec2474

@ -128,7 +128,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
void vPortSVCHandler( void )
{
asm volatile (
__asm volatile (
" ldr r3, pxCurrentTCBConst2 \n" /* Restore the context. */
" ldr r1, [r3] \n" /* Use pxCurrentTCBConst to get the pxCurrentTCB address. */
" ldr r0, [r1] \n" /* The first item in pxCurrentTCB is the task top of stack. */
@ -147,7 +147,7 @@ void vPortSVCHandler( void )
void vPortStartFirstTask( void )
{
asm volatile(
__asm volatile(
" ldr r0, =0xE000ED08 \n" /* Use the NVIC offset register to locate the stack. */
" ldr r0, [r0] \n"
" ldr r0, [r0] \n"

Loading…
Cancel
Save