Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1872 → Rev 1871

/drivers/ddk/Makefile
1,4 → 1,5
 
 
CC = gcc
AS = as
 
16,7 → 17,6
 
NAME_SRCS:= \
debug/dbglog.c \
debug/chkstk.S \
io/create.c \
io/finfo.c \
io/ssize.c \
/drivers/ddk/core.S
22,7 → 22,6
.global _GetPgAddr
.global _GetService
.global _GetTimerTicks
.global _GetStackBase
 
.global _KernelAlloc
.global _KernelFree
46,8 → 45,6
.global _RegService
 
.global _SetMouseData
.global _SetKeyboardData
 
.global _SetScreen
.global _SysMsgBoardStr
 
73,7 → 70,6
.def _GetPgAddr; .scl 2; .type 32; .endef
.def _GetService; .scl 2; .type 32; .endef
.def _GetTimerTicks; .scl 2; .type 32; .endef
.def _GetStackBase; .scl 2; .type 32; .endef
 
.def _KernelAlloc; .scl 2; .type 32; .endef
.def _KernelFree; .scl 2; .type 32; .endef
98,7 → 94,6
 
.def _SetScreen; .scl 2; .type 32; .endef
.def _SetMouseData; .scl 2; .type 32; .endef
.def _SetKeyboardData; .scl 2; .type 32; .endef
.def _SysMsgBoardStr; .scl 2; .type 32; .endef
 
.def _WaitEvent; .scl 2; .type 32; .endef
125,7 → 120,6
_GetPgAddr:
_GetService:
_GetTimerTicks:
_GetStackBase:
 
_KernelAlloc:
_KernelFree:
148,8 → 142,6
_RegService:
 
_SetMouseData:
_SetKeyboardData:
 
_SetScreen:
_SysMsgBoardStr:
 
179,9 → 171,7
.ascii " -export:GetPgAddr" # stdcall
.ascii " -export:GetService" # stdcall
.ascii " -export:GetTimerTicks" #
.ascii " -export:GetStackBase" #
 
 
.ascii " -export:KernelAlloc" # stdcall
.ascii " -export:KernelFree" # stdcall
 
204,8 → 194,6
.ascii " -export:RegService" # stdcall
 
.ascii " -export:SetMouseData" # stdcall
.ascii " -export:SetKeyboardData" # stdcall
 
.ascii " -export:SetScreen" # stdcall
.ascii " -export:SysMsgBoardStr" # stdcall
 
/drivers/include/syscall.h
18,8 → 18,6
#define CreateObject __CreateObject
#define DestroyObject __DestroyObject
 
#define _alloca(x) __builtin_alloca((x))
 
///////////////////////////////////////////////////////////////////////////////
 
 
48,16 → 46,11
void FASTCALL MutexLock(struct mutex*)__asm__("MutexLock");
void FASTCALL MutexUnlock(struct mutex*)__asm__("MutexUnlock");
 
addr_t IMPORT GetStackBase(void)__asm__("GetStackBase");
 
///////////////////////////////////////////////////////////////////////////////
 
void STDCALL SetMouseData(int btn, int x, int y,
int z, int h)__asm__("SetMouseData");
 
void FASTCALL SetKeyboardData(u32_t data)__asm__("SetKeyboardData");
 
 
u8_t STDCALL PciRead8 (u32_t bus, u32_t devfn, u32_t reg)__asm__("PciRead8");
u16_t STDCALL PciRead16(u32_t bus, u32_t devfn, u32_t reg)__asm__("PciRead16");
u32_t STDCALL PciRead32(u32_t bus, u32_t devfn, u32_t reg)__asm__("PciRead32");