Using the GNU Compiler Collection (GCC): NDS32 Built-in Functions

Next: picoChip Built-in Functions, Previous: MSP430 Built-in Functions, Up: Target Builtins [Contents][Index]

#### 6.59.18 NDS32 Built-in Functions

These built-in functions are available for the NDS32 target:

Built-in Function: void __builtin_nds32_isync (int *addr)

  Insert an ISYNC instruction into the instruction stream where addr is an instruction address for serialization.

Built-in Function: void __builtin_nds32_isb (void)

  Insert an ISB instruction into the instruction stream.

Built-in Function: int __builtin_nds32_mfsr (int sr)

  Return the content of a system register which is mapped by sr.

Built-in Function: int __builtin_nds32_mfusr (int usr)

  Return the content of a user space register which is mapped by usr.

Built-in Function: void __builtin_nds32_mtsr (int value, int sr)

  Move the value to a system register which is mapped by sr.

Built-in Function: void __builtin_nds32_mtusr (int value, int usr)

  Move the value to a user space register which is mapped by usr.

Built-in Function: void __builtin_nds32_setgie_en (void)

  Enable global interrupt.

Built-in Function: void __builtin_nds32_setgie_dis (void)

  Disable global interrupt.