2010-02-12 23:11:35 +03:00
|
|
|
|
|
|
|
.file "export.s"
|
|
|
|
.intel_syntax
|
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
.text
|
2010-02-12 23:11:35 +03:00
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
.global _AllocKernelSpace
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _AllocPage
|
|
|
|
.global _AllocPages
|
|
|
|
|
2010-09-05 18:31:18 +04:00
|
|
|
.global _AttachIntHandler
|
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
.global _CreateEvent
|
2011-09-10 15:06:02 +04:00
|
|
|
.global _CreateObject
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _CreateRingBuffer
|
2011-09-10 15:06:02 +04:00
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _Delay
|
2012-09-05 01:40:09 +04:00
|
|
|
.global _DestroyEvent
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _DestroyObject
|
|
|
|
|
2013-04-25 00:04:21 +04:00
|
|
|
.global _DiskAdd
|
|
|
|
.global _DiskMediaChanged
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _FreeKernelSpace
|
2012-09-05 01:40:09 +04:00
|
|
|
.global _FreePage
|
2010-02-12 23:11:35 +03:00
|
|
|
|
2013-04-26 15:01:23 +04:00
|
|
|
.global _GetCpuFreq
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _GetDisplay
|
2010-09-12 02:23:28 +04:00
|
|
|
.global _GetEvent
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _GetPgAddr
|
2011-09-10 15:06:02 +04:00
|
|
|
.global _GetPid
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _GetService
|
2011-02-17 14:21:25 +03:00
|
|
|
.global _GetStackBase
|
2013-04-26 15:01:23 +04:00
|
|
|
.global _GetTimerTicks
|
2012-09-05 01:40:09 +04:00
|
|
|
.global _GetWindowRect
|
2010-02-12 23:11:35 +03:00
|
|
|
|
|
|
|
.global _KernelAlloc
|
|
|
|
.global _KernelFree
|
|
|
|
|
|
|
|
.global _MapIoMem
|
|
|
|
|
2012-11-13 01:22:52 +04:00
|
|
|
.global _MapPage
|
|
|
|
|
2010-03-17 20:42:57 +03:00
|
|
|
.global _MutexInit
|
|
|
|
.global _MutexLock
|
|
|
|
.global _MutexUnlock
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _PciApi
|
|
|
|
.global _PciRead16
|
|
|
|
.global _PciRead32
|
|
|
|
.global _PciRead8
|
|
|
|
.global _PciWrite16
|
|
|
|
.global _PciWrite32
|
|
|
|
.global _PciWrite8
|
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
.global _RaiseEvent
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _RegService
|
|
|
|
|
2010-03-17 20:42:57 +03:00
|
|
|
.global _SetMouseData
|
2011-02-17 14:21:25 +03:00
|
|
|
.global _SetKeyboardData
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.global _SetScreen
|
|
|
|
.global _SysMsgBoardStr
|
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
.global _TimerHs
|
|
|
|
|
2011-07-20 15:24:01 +04:00
|
|
|
.global _UserAlloc
|
2012-11-15 12:04:26 +04:00
|
|
|
.global _UserFree
|
2011-07-20 15:24:01 +04:00
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
.global _WaitEvent
|
2013-03-19 10:14:59 +04:00
|
|
|
.global _WaitEventTimeout
|
2010-09-12 02:23:28 +04:00
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
.def _AllocKernelSpace; .scl 2; .type 32; .endef
|
2010-02-12 23:11:35 +03:00
|
|
|
.def _AllocPage; .scl 2; .type 32; .endef
|
|
|
|
.def _AllocPages; .scl 2; .type 32; .endef
|
|
|
|
|
2010-09-05 18:31:18 +04:00
|
|
|
.def _AttachIntHandler; .scl 2; .type 32; .endef
|
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
.def _CreateEvent; .scl 2; .type 32; .endef
|
2011-09-10 15:06:02 +04:00
|
|
|
.def _CreateObject; .scl 2; .type 32; .endef
|
2010-02-12 23:11:35 +03:00
|
|
|
.def _CreateRingBuffer; .scl 2; .type 32; .endef
|
|
|
|
|
|
|
|
.def _Delay; .scl 2; .type 32; .endef
|
2012-09-05 01:40:09 +04:00
|
|
|
.def _DestroyEvent; .scl 2; .type 32; .endef
|
2010-02-12 23:11:35 +03:00
|
|
|
.def _DestroyObject; .scl 2; .type 32; .endef
|
|
|
|
|
2013-04-25 00:04:21 +04:00
|
|
|
.def _DiskAdd; .scl 2; .type 32; .endef
|
|
|
|
.def _DiskMediaChanged; .scl 2; .type 32; .endef
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.def _FreeKernelSpace; .scl 2; .type 32; .endef
|
2012-09-05 01:40:09 +04:00
|
|
|
.def _FreePage; .scl 2; .type 32; .endef
|
2010-02-12 23:11:35 +03:00
|
|
|
|
2013-04-26 15:01:23 +04:00
|
|
|
.def _GetDisplay; .scl 2; .type 32; .endef
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.def _GetDisplay; .scl 2; .type 32; .endef
|
2010-09-12 02:23:28 +04:00
|
|
|
.def _GetEvent; .scl 2; .type 32; .endef
|
2011-09-10 15:06:02 +04:00
|
|
|
.def _GetPid; .scl 2; .type 32; .endef
|
2010-02-12 23:11:35 +03:00
|
|
|
.def _GetPgAddr; .scl 2; .type 32; .endef
|
|
|
|
.def _GetService; .scl 2; .type 32; .endef
|
2010-09-14 00:07:22 +04:00
|
|
|
.def _GetTimerTicks; .scl 2; .type 32; .endef
|
2011-02-17 14:21:25 +03:00
|
|
|
.def _GetStackBase; .scl 2; .type 32; .endef
|
2012-09-05 01:40:09 +04:00
|
|
|
.def _GetWindowRect; .scl 2; .type 32; .endef
|
2010-02-12 23:11:35 +03:00
|
|
|
|
|
|
|
.def _KernelAlloc; .scl 2; .type 32; .endef
|
|
|
|
.def _KernelFree; .scl 2; .type 32; .endef
|
|
|
|
|
|
|
|
.def _MapIoMem; .scl 2; .type 32; .endef
|
|
|
|
|
2012-11-13 01:22:52 +04:00
|
|
|
.def _MapPage; .scl 2; .type 32; .endef
|
|
|
|
|
2010-03-17 20:42:57 +03:00
|
|
|
.def _MutexInit; .scl 2; .type 32; .endef
|
|
|
|
.def _MutexLock; .scl 2; .type 32; .endef
|
|
|
|
.def _MutexUnlock; .scl 2; .type 32; .endef
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.def _PciApi; .scl 2; .type 32; .endef
|
|
|
|
.def _PciRead16; .scl 2; .type 32; .endef
|
|
|
|
.def _PciRead32; .scl 2; .type 32; .endef
|
|
|
|
.def _PciRead8; .scl 2; .type 32; .endef
|
|
|
|
.def _PciWrite16; .scl 2; .type 32; .endef
|
|
|
|
.def _PciWrite32; .scl 2; .type 32; .endef
|
|
|
|
.def _PciWrite8; .scl 2; .type 32; .endef
|
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
.def _RaiseEvent; .scl 2; .type 32; .endef
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.def _RegService; .scl 2; .type 32; .endef
|
|
|
|
|
|
|
|
.def _SetScreen; .scl 2; .type 32; .endef
|
2010-03-17 20:42:57 +03:00
|
|
|
.def _SetMouseData; .scl 2; .type 32; .endef
|
2011-02-17 14:21:25 +03:00
|
|
|
.def _SetKeyboardData; .scl 2; .type 32; .endef
|
2010-02-12 23:11:35 +03:00
|
|
|
.def _SysMsgBoardStr; .scl 2; .type 32; .endef
|
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
.def _TimerHs; .scl 2; .type 32; .endef
|
|
|
|
|
2011-07-20 15:24:01 +04:00
|
|
|
.def _UserAlloc; .scl 2; .type 32; .endef
|
2012-11-15 12:04:26 +04:00
|
|
|
.def _UserFree; .scl 2; .type 32; .endef
|
2011-07-20 15:24:01 +04:00
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
.def _WaitEvent; .scl 2; .type 32; .endef
|
2013-03-19 10:14:59 +04:00
|
|
|
.def _WaitEventTimeout; .scl 2; .type 32; .endef
|
2010-09-12 02:23:28 +04:00
|
|
|
|
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
_AllocKernelSpace:
|
2010-02-12 23:11:35 +03:00
|
|
|
_AllocPage:
|
|
|
|
_AllocPages:
|
|
|
|
|
2010-09-05 18:31:18 +04:00
|
|
|
_AttachIntHandler:
|
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
_CreateEvent:
|
2011-09-10 15:06:02 +04:00
|
|
|
_CreateObject:
|
2010-02-12 23:11:35 +03:00
|
|
|
_CreateRingBuffer:
|
|
|
|
|
|
|
|
_Delay:
|
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
_DestroyEvent:
|
2010-02-12 23:11:35 +03:00
|
|
|
_DestroyObject:
|
|
|
|
|
2013-04-25 00:04:21 +04:00
|
|
|
_DiskAdd:
|
|
|
|
_DiskMediaChanged:
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
_FreeKernelSpace:
|
2012-09-05 01:40:09 +04:00
|
|
|
_FreePage:
|
2010-02-12 23:11:35 +03:00
|
|
|
|
2013-04-26 15:01:23 +04:00
|
|
|
_GetCpuFreq:
|
2010-02-12 23:11:35 +03:00
|
|
|
_GetDisplay:
|
2010-09-12 02:23:28 +04:00
|
|
|
_GetEvent:
|
2011-09-10 15:06:02 +04:00
|
|
|
_GetPid:
|
2010-02-12 23:11:35 +03:00
|
|
|
_GetPgAddr:
|
|
|
|
_GetService:
|
2010-09-14 00:07:22 +04:00
|
|
|
_GetTimerTicks:
|
2011-02-17 14:21:25 +03:00
|
|
|
_GetStackBase:
|
2012-09-05 01:40:09 +04:00
|
|
|
_GetWindowRect:
|
2010-02-12 23:11:35 +03:00
|
|
|
|
|
|
|
_KernelAlloc:
|
|
|
|
_KernelFree:
|
|
|
|
|
|
|
|
_MapIoMem:
|
|
|
|
|
2012-11-13 01:22:52 +04:00
|
|
|
_MapPage:
|
|
|
|
|
2010-03-17 20:42:57 +03:00
|
|
|
_MutexInit:
|
|
|
|
_MutexLock:
|
|
|
|
_MutexUnlock:
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
_PciApi:
|
|
|
|
_PciRead16:
|
|
|
|
_PciRead32:
|
|
|
|
_PciRead8:
|
|
|
|
_PciWrite16:
|
|
|
|
_PciWrite32:
|
|
|
|
_PciWrite8:
|
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
_RaiseEvent:
|
2010-02-12 23:11:35 +03:00
|
|
|
_RegService:
|
|
|
|
|
2010-03-17 20:42:57 +03:00
|
|
|
_SetMouseData:
|
2011-02-17 14:21:25 +03:00
|
|
|
_SetKeyboardData:
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
_SetScreen:
|
|
|
|
_SysMsgBoardStr:
|
2010-09-12 02:23:28 +04:00
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
_TimerHs:
|
|
|
|
|
2011-07-20 15:24:01 +04:00
|
|
|
_UserAlloc:
|
2012-11-15 12:04:26 +04:00
|
|
|
_UserFree:
|
2010-09-12 02:23:28 +04:00
|
|
|
_WaitEvent:
|
2013-03-19 10:14:59 +04:00
|
|
|
_WaitEventTimeout:
|
2010-09-12 02:23:28 +04:00
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
ret
|
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
.section .drectve
|
|
|
|
|
|
|
|
.ascii " -export:AllocKernelSpace" # stdcall
|
2010-02-12 23:11:35 +03:00
|
|
|
|
|
|
|
.ascii " -export:AllocPage" # gcc ABI
|
|
|
|
.ascii " -export:AllocPages" # gcc ABI
|
|
|
|
|
2010-09-05 18:31:18 +04:00
|
|
|
.ascii " -export:AttachIntHandler" # stdcall
|
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
.ascii " -export:CreateEvent" #
|
2011-09-10 15:06:02 +04:00
|
|
|
.ascii " -export:CreateObject" #
|
2010-09-12 02:23:28 +04:00
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.ascii " -export:CreateRingBuffer" # stdcall
|
|
|
|
|
|
|
|
.ascii " -export:Delay" # stdcall
|
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
.ascii " -export:DestroyEvent"
|
2010-02-12 23:11:35 +03:00
|
|
|
.ascii " -export:DestroyObject"
|
|
|
|
|
2013-04-25 00:04:21 +04:00
|
|
|
.ascii " -export:DiskAdd" # stdcall
|
|
|
|
.ascii " -export:DiskMediaChanged" # stdcall
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.ascii " -export:FreeKernelSpace" # stdcall
|
2012-09-05 01:40:09 +04:00
|
|
|
.ascii " -export:FreePage" #
|
2010-02-12 23:11:35 +03:00
|
|
|
|
2013-04-26 15:01:23 +04:00
|
|
|
.ascii " -export:GetCpuFreq" #
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.ascii " -export:GetDisplay" # stdcall
|
2010-09-12 02:23:28 +04:00
|
|
|
.ascii " -export:GetEvent" #
|
2011-09-10 15:06:02 +04:00
|
|
|
.ascii " -export:GetPid" #
|
2010-02-12 23:11:35 +03:00
|
|
|
.ascii " -export:GetPgAddr" # stdcall
|
|
|
|
.ascii " -export:GetService" # stdcall
|
2010-09-14 00:07:22 +04:00
|
|
|
.ascii " -export:GetTimerTicks" #
|
2011-02-17 14:21:25 +03:00
|
|
|
.ascii " -export:GetStackBase" #
|
2012-09-05 01:40:09 +04:00
|
|
|
.ascii " -export:GetWindowRect" # fastcall
|
2011-02-17 14:21:25 +03:00
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
|
|
|
|
.ascii " -export:KernelAlloc" # stdcall
|
|
|
|
.ascii " -export:KernelFree" # stdcall
|
|
|
|
|
|
|
|
.ascii " -export:MapIoMem" # stdcall
|
2012-11-13 01:22:52 +04:00
|
|
|
.ascii " -export:MapPage" # stdcall
|
2010-02-12 23:11:35 +03:00
|
|
|
|
2010-03-17 20:42:57 +03:00
|
|
|
.ascii " -export:MutexInit" # fastcall
|
|
|
|
.ascii " -export:MutexLock" # fastcall
|
|
|
|
.ascii " -export:MutexUnlock" # fastcall
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.ascii " -export:PciApi" #
|
|
|
|
.ascii " -export:PciRead16" # stdcall
|
|
|
|
.ascii " -export:PciRead32" # stdcall
|
|
|
|
.ascii " -export:PciRead8" # stdcall
|
|
|
|
.ascii " -export:PciWrite16" # stdcall
|
|
|
|
.ascii " -export:PciWrite32" # stdcall
|
|
|
|
.ascii " -export:PciWrite8" # stdcall
|
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
.ascii " -export:RaiseEvent" #
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.ascii " -export:RegService" # stdcall
|
|
|
|
|
2010-03-17 20:42:57 +03:00
|
|
|
.ascii " -export:SetMouseData" # stdcall
|
2011-02-17 14:21:25 +03:00
|
|
|
.ascii " -export:SetKeyboardData" # stdcall
|
|
|
|
|
2010-02-12 23:11:35 +03:00
|
|
|
.ascii " -export:SetScreen" # stdcall
|
|
|
|
.ascii " -export:SysMsgBoardStr" # stdcall
|
|
|
|
|
2012-09-05 01:40:09 +04:00
|
|
|
.ascii " -export:TimerHs" # stdcall
|
|
|
|
|
2011-07-20 15:24:01 +04:00
|
|
|
.ascii " -export:UserAlloc" # stdcall
|
2012-11-15 12:04:26 +04:00
|
|
|
.ascii " -export:UserFree" # stdcall
|
2011-07-20 15:24:01 +04:00
|
|
|
|
2010-09-12 02:23:28 +04:00
|
|
|
.ascii " -export:WaitEvent" # stdcall
|
2013-03-19 10:14:59 +04:00
|
|
|
.ascii " -export:WaitEventTimeout" # stdcall
|
2010-02-12 23:11:35 +03:00
|
|
|
|