Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2967 → Rev 2966

/drivers/include/syscall.h
37,10 → 37,7
 
addr_t STDCALL AllocPage(void)__asm__("AllocPage");
addr_t STDCALL AllocPages(count_t count)__asm__("AllocPages");
void IMPORT __attribute__((regparm(1)))
FreePage(addr_t page)__asm__("FreePage");
 
 
void* STDCALL CreateRingBuffer(size_t size, u32_t map)__asm__("CreateRingBuffer");
 
u32_t STDCALL RegService(char *name, srv_proc_t proc)__asm__("RegService");
54,9 → 51,6
addr_t IMPORT GetStackBase(void)__asm__("GetStackBase");
u32_t IMPORT GetPid(void)__asm__("GetPid");
 
u32 STDCALL TimerHs(u32 delay, u32 interval,
void *fn, void *data)asm("TimerHs");
 
///////////////////////////////////////////////////////////////////////////////
 
void STDCALL SetMouseData(int btn, int x, int y,
91,6 → 85,7
#define pciWriteLong(tag, reg, val) \
PciWrite32(PCI_BUS_FROM_TAG(tag),PCI_DFN_FROM_TAG(tag),(reg),(val))
 
 
///////////////////////////////////////////////////////////////////////////////
 
int dbg_open(char *path);
130,14 → 125,6
__asm__ __volatile__ ("":::"ebx","ecx","edx","esi","edi");
};
 
static inline void DestroyEvent(evhandle_t evh)
{
__asm__ __volatile__ (
"call *__imp__DestroyEvent"
::"a"(evh.handle),"b"(evh.euid));
__asm__ __volatile__ ("":::"ebx","ecx","edx","esi","edi");
};
 
static inline u32_t GetEvent(kevent_t *ev)
{
u32_t handle;
188,7 → 175,7
 
__asm__ __volatile__ (
"call *__imp__GetPgAddr \n\t"
:"=a" (retval)
:"=eax" (retval)
:"a" (mem) );
return retval;
};
229,7 → 216,7
static inline void udelay(u32_t delay)
{
if(!delay) delay++;
delay*= 100;
delay*= 500;
 
while(delay--)
{
311,7 → 298,7
(
"pushl %%eax \n\t"
"call *__imp__GetService"
:"=a" (handle)
:"=eax" (handle)
:"a" (name)
:"ebx","ecx","edx","esi", "edi"
);
430,7 → 417,7
 
static inline void __iomem *ioremap(uint32_t offset, size_t size)
{
return (void __iomem*) MapIoMem(offset, size, PG_SW|PG_NOCACHE);
return (void __iomem*) MapIoMem(offset, size, 3);
}
 
static inline void iounmap(void *addr)