/* Returns 0 if the AP instructions are installed.  */
static int ap_instructions_available(void)
/* Returns 0 if the AP instructions are installed.  */
static int ap_instructions_available(void)
{
	register unsigned long reg0 asm ("0") = AP_MKQID(0,0);
	register unsigned long reg1 asm ("1") = -ENODEV;
	register unsigned long reg2 asm ("2") = 0UL;
	asm volatile(
		"   .long 0xb2af0000\n"
		"0: la    %1,0\n"
		"1:\n"
		EX_TABLE(0b, 1b)
		: "+d" (reg0), "+d" (reg1), "+d" (reg2) : : "cc" );
	return reg1;
}