2007-03-26 16:18:08 +04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2006-10-06 10:09:41 +04:00
|
|
|
|
2007-07-27 17:52:03 +04:00
|
|
|
$Revision$
|
|
|
|
|
|
|
|
|
2006-10-06 10:09:41 +04:00
|
|
|
iglobal
|
2007-11-15 22:43:35 +03:00
|
|
|
szKernel db 'KERNEL', 0
|
|
|
|
szVersion db 'version',0
|
2007-01-19 06:58:46 +03:00
|
|
|
|
2007-11-15 22:43:35 +03:00
|
|
|
szRegService db 'RegService',0
|
|
|
|
szGetService db 'GetService',0
|
2007-01-19 06:58:46 +03:00
|
|
|
szServiceHandler db 'ServiceHandler',0
|
2006-11-27 13:07:51 +03:00
|
|
|
szAttachIntHandler db 'AttachIntHandler',0
|
2008-03-18 20:19:08 +03:00
|
|
|
szGetIntHandler db 'GetIntHandler', 0
|
2007-11-15 22:43:35 +03:00
|
|
|
szFpuSave db 'FpuSave',0
|
|
|
|
szFpuRestore db 'FpuRestore',0
|
2008-03-13 23:23:15 +03:00
|
|
|
szReservePortArea db 'ReservePortArea',0
|
|
|
|
szBoot_Log db 'Boot_Log',0
|
2007-11-15 22:43:35 +03:00
|
|
|
|
|
|
|
szPciApi db 'PciApi', 0
|
|
|
|
szPciRead32 db 'PciRead32', 0
|
|
|
|
szPciRead16 db 'PciRead16', 0
|
|
|
|
szPciRead8 db 'PciRead8', 0
|
|
|
|
szPciWrite8 db 'PciWrite8',0
|
|
|
|
szPciWrite16 db 'PciWrite16',0
|
|
|
|
szPciWrite32 db 'PciWrite32',0
|
|
|
|
|
|
|
|
szAllocPage db 'AllocPage',0
|
|
|
|
szAllocPages db 'AllocPages',0
|
|
|
|
szFreePage db 'FreePage',0
|
|
|
|
szGetPgAddr db 'GetPgAddr',0
|
|
|
|
szMapPage db 'MapPage',0
|
|
|
|
szMapSpace db 'MapSpace',0
|
2008-03-13 23:23:15 +03:00
|
|
|
szMapIoMem db 'MapIoMem',0
|
2007-01-19 06:58:46 +03:00
|
|
|
szCommitPages db 'CommitPages',0
|
|
|
|
szReleasePages db 'ReleasePages',0
|
|
|
|
|
|
|
|
szAllocKernelSpace db 'AllocKernelSpace',0
|
|
|
|
szFreeKernelSpace db 'FreeKernelSpace',0
|
2006-11-27 13:07:51 +03:00
|
|
|
szKernelAlloc db 'KernelAlloc',0
|
2007-11-15 22:43:35 +03:00
|
|
|
szKernelFree db 'KernelFree',0
|
|
|
|
szUserAlloc db 'UserAlloc',0
|
|
|
|
szUserFree db 'UserFree',0
|
|
|
|
szKmalloc db 'Kmalloc',0
|
|
|
|
szKfree db 'Kfree',0
|
2007-05-24 11:36:48 +04:00
|
|
|
szCreateRingBuffer db 'CreateRingBuffer',0
|
2007-01-19 06:58:46 +03:00
|
|
|
|
2007-11-15 22:43:35 +03:00
|
|
|
szGetPid db 'GetPid',0
|
2007-01-19 06:58:46 +03:00
|
|
|
szCreateObject db 'CreateObject',0
|
|
|
|
szDestroyObject db 'DestroyObject',0
|
2007-02-16 07:16:52 +03:00
|
|
|
szCreateEvent db 'CreateEvent',0
|
2007-11-15 22:43:35 +03:00
|
|
|
szRaiseEvent db 'RaiseEvent',0
|
|
|
|
szWaitEvent db 'WaitEvent',0
|
2007-02-16 07:16:52 +03:00
|
|
|
szDestroyEvent db 'DestroyEvent',0
|
2007-11-15 22:43:35 +03:00
|
|
|
szClearEvent db 'ClearEvent',0
|
2007-01-19 06:58:46 +03:00
|
|
|
|
2007-11-15 22:43:35 +03:00
|
|
|
szLoadCursor db 'LoadCursor',0
|
2007-09-20 15:19:03 +04:00
|
|
|
szSelectHwCursor db 'SelectHwCursor',0
|
2006-11-27 13:07:51 +03:00
|
|
|
szSetHwCursor db 'SetHwCursor',0
|
2006-12-02 11:18:48 +03:00
|
|
|
szHwCursorRestore db 'HwCursorRestore', 0
|
|
|
|
szHwCursorCreate db 'HwCursorCreate', 0
|
2007-01-19 06:58:46 +03:00
|
|
|
|
|
|
|
szSysMsgBoardStr db 'SysMsgBoardStr', 0
|
2007-11-18 14:13:14 +03:00
|
|
|
szSysMsgBoardChar db 'SysMsgBoardChar', 0
|
2007-01-19 06:58:46 +03:00
|
|
|
szGetCurrentTask db 'GetCurrentTask',0
|
2007-11-15 22:43:35 +03:00
|
|
|
szLFBAddress db 'LFBAddress',0
|
|
|
|
szLoadFile db 'LoadFile',0
|
|
|
|
szSendEvent db 'SendEvent',0
|
2007-05-08 15:32:58 +04:00
|
|
|
szSetMouseData db 'SetMouseData',0
|
2007-11-15 22:43:35 +03:00
|
|
|
szSleep db 'Sleep',0
|
2007-05-08 15:32:58 +04:00
|
|
|
szGetTimerTicks db 'GetTimerTicks',0
|
2006-10-06 10:09:41 +04:00
|
|
|
|
2007-11-15 22:43:35 +03:00
|
|
|
szStrncat db 'strncat',0
|
|
|
|
szStrncpy db 'strncpy',0
|
|
|
|
szstrncmp db 'strncmp',0
|
|
|
|
szStrnlen db 'strnlen',0
|
|
|
|
szStrchr db 'strchr',0
|
|
|
|
szStrrchr db 'strrchr',0
|
2007-05-23 15:26:19 +04:00
|
|
|
|
2007-01-19 06:58:46 +03:00
|
|
|
|
2006-10-06 10:09:41 +04:00
|
|
|
align 16
|
|
|
|
kernel_export:
|
2007-01-19 06:58:46 +03:00
|
|
|
dd szRegService , reg_service
|
|
|
|
dd szGetService , get_service
|
|
|
|
dd szServiceHandler , srv_handler
|
2006-10-06 10:09:41 +04:00
|
|
|
dd szAttachIntHandler, attach_int_handler
|
2008-03-18 20:19:08 +03:00
|
|
|
dd szGetIntHandler , get_int_handler
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szFpuSave , fpu_save
|
2007-01-19 06:58:46 +03:00
|
|
|
dd szFpuRestore , fpu_restore
|
2008-03-13 23:23:15 +03:00
|
|
|
dd szReservePortArea , r_f_port_area
|
|
|
|
dd szBoot_Log , boot_log
|
2007-01-19 06:58:46 +03:00
|
|
|
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szPciApi , pci_api
|
2006-10-06 10:09:41 +04:00
|
|
|
dd szPciRead32 , pci_read32
|
2007-06-27 03:33:43 +04:00
|
|
|
dd szPciRead16 , pci_read16
|
2006-10-06 10:09:41 +04:00
|
|
|
dd szPciRead8 , pci_read8
|
|
|
|
dd szPciWrite8 , pci_write8
|
2007-06-27 03:33:43 +04:00
|
|
|
dd szPciWrite16 , pci_write16
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szPciWrite32 , pci_write32
|
2007-01-19 06:58:46 +03:00
|
|
|
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szAllocPage , alloc_page ;stdcall
|
|
|
|
dd szAllocPages , alloc_pages ;stdcall
|
2007-01-19 06:58:46 +03:00
|
|
|
dd szFreePage , free_page
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szMapPage , map_page ;stdcall
|
2007-01-19 06:58:46 +03:00
|
|
|
dd szMapSpace , map_space
|
2008-03-13 23:23:15 +03:00
|
|
|
dd szMapIoMem , map_io_mem ;stdcall
|
2007-01-19 06:58:46 +03:00
|
|
|
dd szGetPgAddr , get_pg_addr
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szCommitPages , commit_pages ;not implemented
|
2007-01-19 06:58:46 +03:00
|
|
|
dd szReleasePages , release_pages
|
|
|
|
|
2007-10-20 21:11:22 +04:00
|
|
|
dd szAllocKernelSpace, alloc_kernel_space ;stdcall
|
|
|
|
dd szFreeKernelSpace , free_kernel_space ;stdcall
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szKernelAlloc , kernel_alloc ;stdcall
|
|
|
|
dd szKernelFree , kernel_free ;stdcall
|
|
|
|
dd szUserAlloc , user_alloc ;stdcall
|
|
|
|
dd szUserFree , user_free ;stdcall
|
|
|
|
dd szKmalloc , malloc
|
|
|
|
dd szKfree , free
|
2007-05-24 11:36:48 +04:00
|
|
|
dd szCreateRingBuffer, create_ring_buffer
|
2007-01-19 06:58:46 +03:00
|
|
|
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szGetPid , get_pid
|
2007-01-19 06:58:46 +03:00
|
|
|
dd szCreateObject , create_kernel_object
|
|
|
|
dd szDestroyObject , destroy_kernel_object
|
2007-02-16 07:16:52 +03:00
|
|
|
dd szCreateEvent , create_event
|
|
|
|
dd szRaiseEvent , raise_event
|
|
|
|
dd szWaitEvent , wait_event
|
|
|
|
dd szDestroyEvent , destroy_event
|
2007-02-26 15:40:37 +03:00
|
|
|
dd szClearEvent , clear_event
|
2007-01-19 06:58:46 +03:00
|
|
|
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szLoadCursor , load_cursor ;stdcall
|
2007-10-21 01:02:38 +04:00
|
|
|
|
|
|
|
dd szSelectHwCursor , select_hw_cursor ;import
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szSetHwCursor , set_hw_cursor ;import
|
|
|
|
dd szHwCursorRestore , hw_restore ;import
|
|
|
|
dd szHwCursorCreate , create_cursor ;import
|
2007-01-19 06:58:46 +03:00
|
|
|
|
|
|
|
dd szSysMsgBoardStr , sys_msg_board_str
|
2007-11-18 14:13:14 +03:00
|
|
|
dd szSysMsgBoardChar , sys_msg_board
|
2007-01-19 06:58:46 +03:00
|
|
|
dd szGetCurrentTask , get_curr_task
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szLoadFile , load_file ;retval eax, ebx
|
2006-12-02 11:18:48 +03:00
|
|
|
dd szSendEvent , send_event
|
2007-10-21 01:02:38 +04:00
|
|
|
dd szSetMouseData , set_mouse_data ;stdcall
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szSleep , delay_ms
|
2007-05-08 15:32:58 +04:00
|
|
|
dd szGetTimerTicks , get_timer_ticks
|
2007-05-23 15:26:19 +04:00
|
|
|
|
2007-11-15 22:43:35 +03:00
|
|
|
dd szStrncat , strncat
|
|
|
|
dd szStrncpy , strncpy
|
|
|
|
dd szstrncmp , strncmp
|
|
|
|
dd szStrnlen , strnlen
|
|
|
|
dd szStrchr , strchr
|
|
|
|
dd szStrrchr , strrchr
|
2007-05-23 15:26:19 +04:00
|
|
|
|
2006-11-20 10:06:00 +03:00
|
|
|
exp_lfb:
|
|
|
|
dd szLFBAddress , 0
|
2007-11-15 22:43:35 +03:00
|
|
|
dd 0 ;terminator, must be zero
|
2006-10-06 10:09:41 +04:00
|
|
|
|
|
|
|
endg
|
|
|
|
|