Newer
Older
UbixOS / Dump / hybos / lib / x86 / disable.c
@cwolsen cwolsen on 31 Oct 2018 314 bytes Big Dump
/*****************************************************************************
*****************************************************************************/
unsigned disable(void)
{
	unsigned ret_val;

	__asm__ __volatile__("pushfl\n"
		"popl %0\n"
		"cli"
		: "=a"(ret_val)
		:);
	return ret_val;
}