Subversion Repositories Kolibri OS

Rev

Rev 8912 | Rev 9036 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8912 Rev 8914
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 8912 $
8
$Revision: 8914 $
9
 
9
 
10
ERROR_SUCCESS        = 0
10
ERROR_SUCCESS        = 0
11
ERROR_DISK_BASE      = 1
11
ERROR_DISK_BASE      = 1
Line 88... Line 88...
88
; .ret:
88
; .ret:
89
;         pop     edx ecx ebx
89
;         pop     edx ecx ebx
90
;         ret
90
;         ret
91
; endp
91
; endp
Line 92... Line 92...
92
 
92
 
93
syscall_fileSystemUnicode:
93
; syscall_fileSystemUnicode: ; with user pointer correctness checking
94
; in: ebx -> f.80 parameter structure
94
; ; in: ebx -> f.80 parameter structure
95
        stdcall file_system_is_operation_safe, ebx
95
;         stdcall file_system_is_operation_safe, ebx
96
        jnz     @f
96
;         jnz     @f
97
 
97
 
98
        DEBUGF  1, "sysfn80 addr error\n"
98
;         DEBUGF  1, "sysfn80 addr error\n"
99
        mov     dword [image_of_eax], ERROR_MEMORY_POINTER
99
;         mov     dword [image_of_eax], ERROR_MEMORY_POINTER
100
        ret
100
;         ret
101
@@:
101
; @@:
Line 102... Line 102...
102
        jmp     fileSystemUnicode
102
;         jmp     fileSystemUnicode
103
 
103
 
104
; temporarily commented out cause acpi driver (drivers/devman) uses sysfn70 via 0x40
104
; temporarily commented out cause acpi driver (drivers/devman) uses sysfn70 via 0x40
105
; so because drivers it kernel space, pointer checking fails
105
; so because drivers it kernel space, pointer checking fails
-
 
106
; TODO solution: add filesystem functions without pointer checking to kernel exports
106
; TODO solution: add filesystem functions without pointer checking to kernel exports
107
; and make the driver use them, not int 0x40
107
; and make the driver use them, not int 0x40
108
; syscall_fileSystemUnicode commented out for the same reason
108
; syscall_file_system_lfn: ; with user pointer correctness checking
109
; syscall_file_system_lfn: ; with user pointer correctness checking
109
; ; in: ebx -> f.70 parameter structure
110
; ; in: ebx -> f.70 parameter structure