mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-21 06:12:34 +03:00
15fd6b2c81
git-svn-id: svn://kolibrios.org@4587 a494cfbc-eb01-0410-851d-a64ba20cac60
131 lines
6.9 KiB
PHP
131 lines
6.9 KiB
PHP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; ;;
|
|
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
;; ;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
$Revision: 4418 $
|
|
|
|
iglobal
|
|
szKernel db 'KERNEL', 0
|
|
szVersion db 'version',0
|
|
endg
|
|
|
|
align 4
|
|
__exports:
|
|
export 'KERNEL', \
|
|
alloc_kernel_space, 'AllocKernelSpace', \ ; stdcall
|
|
alloc_page, 'AllocPage', \ ; gcc ABI
|
|
alloc_pages, 'AllocPages', \ ; stdcall
|
|
commit_pages, 'CommitPages', \ ; eax, ebx, ecx
|
|
\
|
|
disk_add, 'DiskAdd', \ ;stdcall
|
|
disk_del, 'DiskDel', \
|
|
disk_media_changed, 'DiskMediaChanged', \ ;stdcall
|
|
\
|
|
create_event, 'CreateEvent', \ ; ecx, esi
|
|
destroy_event, 'DestroyEvent', \ ;
|
|
raise_event, 'RaiseEvent', \ ; eax, ebx, edx, esi
|
|
wait_event, 'WaitEvent', \ ; eax, ebx
|
|
wait_event_timeout, 'WaitEventTimeout', \ ; eax, ebx, ecx
|
|
get_event_ex, 'GetEvent', \ ; edi
|
|
clear_event, 'ClearEvent', \ ;see EVENT.inc for specification
|
|
send_event, 'SendEvent', \ ;see EVENT.inc for specification
|
|
\
|
|
create_kernel_object, 'CreateObject', \
|
|
create_ring_buffer, 'CreateRingBuffer', \ ; stdcall
|
|
destroy_kernel_object, 'DestroyObject', \
|
|
free_kernel_space, 'FreeKernelSpace', \ ; stdcall
|
|
free_page, 'FreePage', \ ; eax
|
|
kernel_alloc, 'KernelAlloc', \ ; stdcall
|
|
kernel_free, 'KernelFree', \ ; stdcall
|
|
malloc, 'Kmalloc', \
|
|
free, 'Kfree', \
|
|
map_io_mem, 'MapIoMem', \ ; stdcall
|
|
map_page, 'MapPage', \ ; stdcall
|
|
get_pg_addr, 'GetPgAddr', \ ; eax
|
|
get_phys_addr, 'GetPhysAddr', \ ; eax
|
|
map_space, 'MapSpace', \
|
|
release_pages, 'ReleasePages', \
|
|
\
|
|
mutex_init, 'MutexInit', \ ; gcc fastcall
|
|
mutex_lock, 'MutexLock', \ ; gcc fastcall
|
|
mutex_unlock, 'MutexUnlock', \ ; gcc fastcall
|
|
\
|
|
get_display, 'GetDisplay', \
|
|
set_screen, 'SetScreen', \
|
|
window._.get_rect, 'GetWindowRect', \ ; gcc fastcall
|
|
pci_api_drv, 'PciApi', \
|
|
pci_read8, 'PciRead8', \ ; stdcall
|
|
pci_read16, 'PciRead16', \ ; stdcall
|
|
pci_read32, 'PciRead32', \ ; stdcall
|
|
pci_write8, 'PciWrite8', \ ; stdcall
|
|
pci_write16, 'PciWrite16', \ ; stdcall
|
|
pci_write32, 'PciWrite32', \ ; stdcall
|
|
\
|
|
get_pid, 'GetPid', \
|
|
get_service, 'GetService', \ ;
|
|
reg_service, 'RegService', \ ; stdcall
|
|
attach_int_handler, 'AttachIntHandler', \ ; stdcall
|
|
user_alloc, 'UserAlloc', \ ; stdcall
|
|
user_alloc_at, 'UserAllocAt', \ ; stdcall
|
|
user_free, 'UserFree', \ ; stdcall
|
|
unmap_pages, 'UnmapPages', \ ; eax, ecx
|
|
sys_msg_board_str, 'SysMsgBoardStr', \
|
|
sys_msg_board, 'SysMsgBoard', \
|
|
get_timer_ticks, 'GetTimerTicks', \
|
|
get_stack_base, 'GetStackBase', \
|
|
delay_hs, 'Delay', \ ; ebx
|
|
set_mouse_data, 'SetMouseData', \ ;
|
|
set_keyboard_data, 'SetKeyboardData', \ ; gcc fastcall
|
|
register_keyboard, 'RegKeyboard', \
|
|
delete_keyboard, 'DelKeyboard', \
|
|
get_cpu_freq, 'GetCpuFreq', \
|
|
\
|
|
new_sys_threads, 'CreateThread', \ ; ebx, ecx, edx
|
|
\
|
|
srv_handler, 'ServiceHandler', \
|
|
fpu_save, 'FpuSave', \
|
|
fpu_restore, 'FpuRestore', \
|
|
r_f_port_area, 'ReservePortArea', \
|
|
boot_log, 'Boot_Log', \
|
|
\
|
|
load_cursor, 'LoadCursor', \ ;stdcall
|
|
\
|
|
get_curr_task, 'GetCurrentTask', \
|
|
load_file, 'LoadFile', \ ;retval eax, ebx
|
|
delay_ms, 'Sleep', \
|
|
\
|
|
strncat, 'strncat', \
|
|
strncpy, 'strncpy', \
|
|
strncmp, 'strncmp', \
|
|
strnlen, 'strnlen', \
|
|
strchr, 'strchr', \
|
|
strrchr, 'strrchr', \
|
|
\
|
|
timer_hs, 'TimerHS', \
|
|
timer_hs, 'TimerHs', \ ; shit happens
|
|
cancel_timer_hs, 'CancelTimerHS', \
|
|
\
|
|
reg_usb_driver, 'RegUSBDriver', \
|
|
usb_open_pipe, 'USBOpenPipe', \
|
|
usb_close_pipe, 'USBClosePipe', \
|
|
usb_normal_transfer_async, 'USBNormalTransferAsync', \
|
|
usb_control_async, 'USBControlTransferAsync', \
|
|
usb_get_param, 'USBGetParam', \
|
|
usb_hc_func, 'USBHCFunc', \
|
|
\
|
|
NET_add_device, 'NetRegDev', \
|
|
NET_remove_device, 'NetUnRegDev', \
|
|
NET_ptr_to_num, 'NetPtrToNum', \
|
|
NET_link_changed, 'NetLinkChanged', \
|
|
ETH_input, 'Eth_input', \
|
|
\
|
|
get_pcidev_list, 'GetPCIList', \
|
|
\
|
|
0, 'LFBAddress' ; must be the last one
|
|
load kernel_exports_count dword from __exports + 24
|
|
load kernel_exports_addresses dword from __exports + 28
|
|
exp_lfb = OS_BASE + kernel_exports_addresses + (kernel_exports_count - 1) * 4 - 4
|