Rev 1408 | Rev 9057 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1408 | Rev 6591 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | 57 | ||
58 | int get_fileinfo(const char *path,FILEINFO *info) |
58 | int get_fileinfo(const char *path,FILEINFO *info) |
59 | { |
59 | { |
- | 60 | int retval; |
|
Line 60... | Line 61... | ||
60 | int retval; |
61 | int tmp; |
61 | 62 | ||
62 | asm __volatile__ |
63 | asm __volatile__ |
63 | ( |
64 | ( |
64 | "pushl $0 \n\t" |
65 | "pushl $0 \n\t" |
65 | "pushl $0 \n\t" |
66 | "pushl $0 \n\t" |
66 | "movl %0, 1(%%esp) \n\t" |
67 | "movl %2, 1(%%esp) \n\t" |
67 | "pushl %%ebx \n\t" |
68 | "pushl %%ebx \n\t" |
68 | "pushl $0 \n\t" |
69 | "pushl $0 \n\t" |
69 | "pushl $0 \n\t" |
70 | "pushl $0 \n\t" |
70 | "pushl $0 \n\t" |
71 | "pushl $0 \n\t" |
71 | "pushl $5 \n\t" |
72 | "pushl $5 \n\t" |
72 | "movl %%esp, %%ebx \n\t" |
73 | "movl %%esp, %%ebx \n\t" |
73 | "movl $70, %%eax \n\t" |
74 | "movl $70, %%eax \n\t" |
74 | "int $0x40 \n\t" |
75 | "int $0x40 \n\t" |
75 | "addl $28, %%esp \n\t" |
76 | "addl $28, %%esp \n\t" |
76 | :"=a" (retval) |
77 | :"=a" (retval),"=b"(tmp) |
77 | :"r" (path), "b" (info) |
78 | :"r" (path), "b" (info) |
78 | ); |
79 | ); |