MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_hw_interrupt_disable

Function rt_hw_interrupt_disable

libcpu/ia32/cpuport.c:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16volatile rt_uint32_t rt_thread_switch_interrupt_flag = 0;
17
18rt_base_t rt_hw_interrupt_disable(void)
19{
20 rt_base_t level;
21
22 __asm__ __volatile__("pushfl ; popl %0 ; cli":"=g" (level): :"memory");
23 return level;
24}
25
26void rt_hw_interrupt_enable(rt_base_t level)
27{

Callers 15

finsh_set_passwordFunction · 0.50
_vcom_reset_stateFunction · 0.50
_ep_out_handlerFunction · 0.50
_vcom_getcFunction · 0.50
_vcom_rb_block_putFunction · 0.50
_vcom_putcFunction · 0.50
vcom_tx_thread_entryFunction · 0.50
_rndis_init_responseFunction · 0.50
_rndis_query_responseFunction · 0.50
_rndis_set_responseFunction · 0.50
_rndis_reset_responseFunction · 0.50

Calls

no outgoing calls

Tested by 1

test_and_set_bitFunction · 0.40