Subversion Repositories Kolibri OS

Rev

Rev 4973 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #include<menuet/os.h>
  2.  
  3. int __menuet__wait_for_event(void)
  4. {
  5.  __u32 __ret;
  6.  __asm__ __volatile__("int $0x40":"=a"(__ret):"0"(10));
  7.  return __ret;
  8. }
  9.  
  10. int __menuet__check_for_event(void)
  11. {
  12.  __u32 __ret;
  13.  __asm__ __volatile__("int $0x40":"=a"(__ret):"0"(11));
  14.  return __ret;
  15. }
  16.  
  17. void __menuet__set_bitfield_for_wanted_events(__u32 ev)
  18. {
  19.  __asm__ __volatile__("int $0x40"::"a"(40),"b"(ev));
  20. }
  21.