2013-12-04 00:29:24 +04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
format binary as ""
|
|
|
|
|
|
|
|
use32
|
|
|
|
db 'MENUET01'
|
|
|
|
dd 1
|
|
|
|
dd start
|
|
|
|
dd i_end
|
|
|
|
dd mem
|
|
|
|
dd mem
|
2019-04-30 14:05:08 +03:00
|
|
|
dd driver_name, 0 ; NAME W/O EXT, NOT PATH. SEE f68.16
|
2013-12-04 00:29:24 +04:00
|
|
|
|
2019-04-30 14:05:08 +03:00
|
|
|
include '../../debug.inc'
|
|
|
|
|
2013-12-04 00:29:24 +04:00
|
|
|
start:
|
|
|
|
mov eax, 68
|
|
|
|
mov ebx, 16
|
2019-04-30 14:05:08 +03:00
|
|
|
mov ecx, driver_name
|
2013-12-04 00:29:24 +04:00
|
|
|
int 0x40
|
|
|
|
|
2019-04-30 14:05:08 +03:00
|
|
|
cmp eax, 0
|
|
|
|
jne ok
|
|
|
|
nok:
|
|
|
|
print 'LoadDrv: Error loading driver'
|
|
|
|
print 'Driver must be in /sys/drivers/ folder.'
|
|
|
|
print 'Its name must be w/o extension and it is case-sensitive'
|
2013-12-04 00:29:24 +04:00
|
|
|
mov eax, -1
|
|
|
|
int 0x40
|
2019-04-30 14:05:08 +03:00
|
|
|
ok:
|
|
|
|
print 'LoadDrv: Driver loaded well'
|
|
|
|
mov eax, -1
|
|
|
|
int 0x40
|
|
|
|
|
2013-12-04 00:29:24 +04:00
|
|
|
i_end:
|
|
|
|
|
2019-04-30 14:05:08 +03:00
|
|
|
driver_name rb 1024
|
2013-12-04 00:29:24 +04:00
|
|
|
|
|
|
|
mem:
|