kernel: fix export of file_system_lfn_protected.
This function returns values not in registers but in their images on stack. Therefore we have to wrap a call with pushad/popad. git-svn-id: svn://kolibrios.org@9185 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
79377393da
commit
cf3af4b4ed
@ -123,8 +123,9 @@ __exports:
|
||||
usb_get_param, 'USBGetParam', \
|
||||
usb_hc_func, 'USBHCFunc', \
|
||||
\
|
||||
file_system_lfn_protected, 'FS_Service', \ ; The intrakernel function of working with the file system is exported.
|
||||
\ ; The intrakernel function of working with the file system.
|
||||
\ ; Duplicates system call 70.
|
||||
file_system_lfn_protected_registers, 'FS_Service', \
|
||||
\
|
||||
net_add_device, 'NetRegDev', \
|
||||
net_remove_device, 'NetUnRegDev', \
|
||||
|
@ -119,6 +119,14 @@ image_of_ebx EQU esp+20
|
||||
|
||||
; System function 70
|
||||
|
||||
; file_system_lfn_protected returns values not in registers, but in their images
|
||||
; on stack. Make a short wrapper to actually return values in registers.
|
||||
file_system_lfn_protected_registers:
|
||||
pushad
|
||||
call file_system_lfn_protected
|
||||
popad
|
||||
ret
|
||||
|
||||
file_system_lfn_protected:
|
||||
pushad
|
||||
call protect_from_terminate
|
||||
|
Loading…
Reference in New Issue
Block a user