Rev 5068 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5068 | Rev 5081 | ||
---|---|---|---|
Line 210... | Line 210... | ||
210 | return val>>8; |
210 | return val>>8; |
211 | }; |
211 | }; |
Line 212... | Line 212... | ||
212 | 212 | ||
213 | static inline uint32_t get_service(char *name) |
213 | static inline uint32_t get_service(char *name) |
214 | { |
214 | { |
- | 215 | uint32_t retval = 0; |
|
215 | uint32_t retval = 0; |
216 | __asm__ __volatile__( |
216 | asm volatile ("int $0x40" |
217 | "int $0x40" |
217 | :"=a"(retval) |
218 | :"=a"(retval) |
218 | :"a"(68),"b"(16),"c"(name) |
219 | :"a"(68),"b"(16),"c"(name) |
Line 219... | Line 220... | ||
219 | :"memory"); |
220 | :"memory"); |
220 | 221 | ||
Line 221... | Line 222... | ||
221 | return retval; |
222 | return retval; |
222 | }; |
223 | }; |
223 | 224 | ||
Line -... | Line 225... | ||
- | 225 | static inline int call_service(ioctl_t *io) |
|
224 | static inline int call_service(ioctl_t *io) |
226 | { |
225 | { |
227 | int retval; |
226 | int retval; |
228 | |
227 | 229 | __asm__ __volatile__( |
|
Line 228... | Line 230... | ||
228 | asm volatile("int $0x40" |
230 | "int $0x40" |
229 | :"=a"(retval) |
231 | :"=a"(retval) |
Line 230... | Line 232... | ||
230 | :"a"(68),"b"(17),"c"(io) |
232 | :"a"(68),"b"(17),"c"(io) |
231 | :"memory","cc"); |
233 | :"memory","cc"); |
Line 338... | Line 340... | ||
338 | }ufile_t; |
340 | }ufile_t; |
Line 339... | Line 341... | ||
339 | 341 | ||
340 | 342 | ||
341 | static inline ufile_t load_file(const char *path) |
343 | static inline ufile_t load_file(const char *path) |
Line 342... | Line 344... | ||
342 | { |
344 | { |
343 | ufile_t uf; |
345 | ufile_t uf; |
344 | 346 | ||
345 | __asm__ __volatile__ ( |
347 | __asm__ __volatile__ ( |
Line 346... | Line 348... | ||
346 | "int $0x40" |
348 | "int $0x40" |
347 | :"=A"(uf.raw) |
349 | :"=A"(uf.raw) |
348 | :"a" (68), "b"(27),"c"(path)); |
350 | :"a" (68), "b"(27),"c"(path)); |
Line 349... | Line 351... | ||
349 | 351 | ||
350 | return uf; |
352 | return uf; |
351 | }; |
353 | }; |
Line 352... | Line 354... | ||
352 | static inline ufile_t LoadFile(const char *path) __attribute__ ((alias ("load_file"))); |
354 | static inline ufile_t LoadFile(const char *path) __attribute__ ((alias ("load_file"))); |
353 | 355 | ||
354 | static inline int GetScreenSize() |
356 | static inline int GetScreenSize() |
355 | { |
357 | { |
356 | int retval; |
358 | int retval; |
357 | 359 | ||
Line 358... | Line 360... | ||
358 | __asm__ __volatile__( |
360 | __asm__ __volatile__( |
359 | "int $0x40" |
361 | "int $0x40" |
360 | :"=a"(retval) |
362 | :"=a"(retval) |
Line 459... | Line 461... | ||
459 | bc.bitmap = bitmap; |
461 | bc.bitmap = bitmap; |
Line 460... | Line 462... | ||
460 | 462 | ||
461 | __asm__ __volatile__( |
463 | __asm__ __volatile__( |
462 | "int $0x40" |
464 | "int $0x40" |
463 | ::"a"(73),"b"(0),"c"(&bc.dstx)); |
- | |
464 | 465 | ::"a"(73),"b"(0),"c"(&bc.dstx)); |
|
Line 465... | Line 466... | ||
465 | }; |
466 | }; |