Rev 4973 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4973 | Rev 5029 | ||
---|---|---|---|
1 | #include |
1 | #include |
2 | 2 | ||
3 | int __menuet__wait_for_event(void) |
3 | int __menuet__wait_for_event(void) |
4 | { |
4 | { |
5 | __u32 __ret; |
5 | __u32 __ret; |
6 | __asm__ __volatile__("int $0x40":"=a"(__ret):"0"(10)); |
6 | __asm__ __volatile__("int $0x40":"=a"(__ret):"0"(10)); |
7 | return __ret; |
7 | return __ret; |
8 | } |
8 | } |
9 | 9 | ||
10 | int __menuet__check_for_event(void) |
10 | int __menuet__check_for_event(void) |
11 | { |
11 | { |
12 | __u32 __ret; |
12 | __u32 __ret; |
13 | __asm__ __volatile__("int $0x40":"=a"(__ret):"0"(11)); |
13 | __asm__ __volatile__("int $0x40":"=a"(__ret):"0"(11)); |
14 | return __ret; |
14 | return __ret; |
15 | } |
15 | } |
16 | 16 | ||
17 | void __menuet__set_bitfield_for_wanted_events(__u16 ev) |
17 | void __menuet__set_bitfield_for_wanted_events(__u32 ev) |
18 | { |
18 | { |
19 | __asm__ __volatile__("int $0x40"::"a"(40),"b"(ev)); |
19 | __asm__ __volatile__("int $0x40"::"a"(40),"b"(ev)); |
20 | } |
20 | } |