Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 205 → Rev 206

/SPARTAN/trunk/arch/amd64/include/asm.h
34,7 → 34,9
 
 
void asm_delay_loop(__u32 t);
void asm_fake_loop(__u32 t);
 
 
/* TODO: implement the real stuff */
static inline __address get_stack_base(void)
{
54,7 → 56,7
"mov %%al, %1;"
:"=m"(out)
:"m"(port)
:"dx","al"
:"%dx","%al"
);
return out;
}
67,7 → 69,7
"outb %%al,%%dx;"
:
:"m"( port), "m" (b)
:"dx","al"
:"%dx","%al"
);
}
 
115,5 → 117,21
);
}
 
/** Return raw priority level
*
* Return EFLAFS.
*/
static inline pri_t cpu_priority_read(void) {
pri_t v;
__asm__ volatile (
"pushfq\n"
"popq %0\n"
: "=r" (v)
);
return v;
}
 
extern size_t interrupt_handler_size;
extern void interrupt_handlers(void);
 
#endif