inline assembly for cortex m3

Hi
I want to use uc/Probe for LPC1768 and I have difficulty porting this function to cortex.

static CPU_INT32U ProbeDCC_RdCtrl (void)
{ __asm{ mrc P14,0,R0,C0,C0}
}

The compiler generate this error

probe_dcc.c(140): error: #1113: Inline assembler not permitted when generating Thumb code

And when I include #pragma arm and #pragma thumb it will generate this error

probe_dcc.c(137): error: #1114-D: this feature not supported on target architecture/processor

Do you have any idea how to implement the above function?
Regards

More questions in this forum