2013-12-03 21:29:24 +01: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 13:05:08 +02:00
|
|
|
dd driver_name, 0 ; NAME W/O EXT, NOT PATH. SEE f68.16
|
2013-12-03 21:29:24 +01:00
|
|
|
|
2019-04-30 13:05:08 +02:00
|
|
|
include '../../debug.inc'
|
|
|
|
|
2013-12-03 21:29:24 +01:00
|
|
|
start:
|
|
|
|
mov eax, 68
|
|
|
|
mov ebx, 16
|
2019-04-30 13:05:08 +02:00
|
|
|
mov ecx, driver_name
|
2013-12-03 21:29:24 +01:00
|
|
|
int 0x40
|
|
|
|
|
2019-04-30 13:05:08 +02: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-03 21:29:24 +01:00
|
|
|
mov eax, -1
|
|
|
|
int 0x40
|
2019-04-30 13:05:08 +02:00
|
|
|
ok:
|
|
|
|
print 'LoadDrv: Driver loaded well'
|
|
|
|
mov eax, -1
|
|
|
|
int 0x40
|
|
|
|
|
2013-12-03 21:29:24 +01:00
|
|
|
i_end:
|
|
|
|
|
2019-04-30 13:05:08 +02:00
|
|
|
driver_name rb 1024
|
2013-12-03 21:29:24 +01:00
|
|
|
|
|
|
|
mem:
|