Subversion Repositories Kolibri OS

Rev

Rev 6591 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1408 serge 1
 
2
               unsigned offset,unsigned count,unsigned *writes)
3
{
4
     int retval;
5
     __asm__ __volatile__(
6
     "pushl $0 \n\t"
7
     "pushl $0 \n\t"
8
     "movl %%eax, 1(%%esp) \n\t"
9
     "pushl %%ebx \n\t"
10
     "pushl %%edx \n\t"
11
     "pushl $0 \n\t"
12
     "pushl %%ecx \n\t"
13
     "pushl $3 \n\t"
14
     "movl %%esp, %%ebx \n\t"
15
     "mov $70, %%eax \n\t"
16
     "int $0x40 \n\t"
17
     "testl %%esi, %%esi \n\t"
18
     "jz 1f \n\t"
19
     "movl %%ebx, (%%esi) \n\t"
20
"1:"
21
     "addl $28, %%esp \n\t"
22
     :"=a" (retval)
23
     :"a"(path),"b"(buff),"c"(offset),"d"(count),"S"(writes));
24
  return retval;
25
};
26