Subversion Repositories Kolibri OS

Rev

Rev 888 | Rev 890 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 888 Rev 889
Line 90... Line 90...
90
                :"cc"
90
                :"cc"
91
                );
91
                );
92
}
92
}
93
 
93
 
Line 94... Line 94...
94
static inline void _btr(u32_t *data, count_t val)
94
extern inline void _btr(u32_t *data, count_t val)
95
{
95
{
96
  asm volatile ("btr %0, %1 \n\t"
96
  asm volatile ("btr %0, %1 \n\t"
97
                :
97
                :
98
                :"g"(data), "r"(val)
98
                :"g"(data), "r"(val)
99
                :"cc"
99
                :"cc"
100
                );
100
                );
101
}
101
}
-
 
102
 
-
 
103
extern inline void* load_file(const char *path, size_t *size)
-
 
104
{
-
 
105
     void* retval;
-
 
106
     size_t tmp;
-
 
107
 
-
 
108
     __asm__ __volatile__ (
-
 
109
     "pushl %%eax           \n\t"
-
 
110
     "call _load_file@4     \n\t"
-
 
111
     :"=eax" (retval), "=ebx"(tmp)
-
 
112
     :"a" (path) );
-
 
113
 
-
 
114
     if(size)
-
 
115
        *size = tmp;
-
 
116
     return retval;
-
 
117
};
-
 
118
 
-
 
119
 
-
 
120
//extern __fastcall void* load_file(const char *path, size_t *size);