Rev 2427 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2427 | Rev 3068 | ||
---|---|---|---|
Line 262... | Line 262... | ||
262 | :"a"(37), "b"(5), "c"(cursor)); |
262 | :"a"(37), "b"(5), "c"(cursor)); |
263 | return old; |
263 | return old; |
264 | } |
264 | } |
265 | 265 | ||
Line -... | Line 266... | ||
- | 266 | static inline |
|
- | 267 | int destroy_cursor(uint32_t cursor) |
|
- | 268 | { |
|
- | 269 | int ret; |
|
- | 270 | __asm__ __volatile__( |
|
- | 271 | "int $0x40" |
|
- | 272 | :"=a"(ret) |
|
- | 273 | :"a"(37), "b"(6), "c"(cursor) |
|
- | 274 | :"memory"); |
|
- | 275 | return ret; |
|
- | 276 | }; |
|
- | 277 | ||
266 | static inline void get_proc_info(char *info) |
278 | static inline void get_proc_info(char *info) |
267 | { |
279 | { |
268 | __asm__ __volatile__( |
280 | __asm__ __volatile__( |
269 | "int $0x40" |
281 | "int $0x40" |
270 | : |
282 | : |
Line 277... | Line 289... | ||
277 | void *val; |
289 | void *val; |
278 | __asm__ __volatile__( |
290 | __asm__ __volatile__( |
279 | "int $0x40" |
291 | "int $0x40" |
280 | :"=a"(val) |
292 | :"=a"(val) |
281 | :"a"(68),"b"(12),"c"(size),"d"(mem) |
293 | :"a"(68),"b"(20),"c"(size),"d"(mem) |
282 | :"memory"); |
294 | :"memory"); |
283 | 295 | ||
Line 284... | Line 296... | ||
284 | return val; |
296 | return val; |
285 | } |
297 | } |