mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-26 16:37:30 +03:00
4f9a8d23e4
2. debug.inc no need to use macros.inc for only one mcall 3. small fix in sysfuncs.txt 4. remove duplicated vendors in pcidev app git-svn-id: svn://kolibrios.org@7644 a494cfbc-eb01-0410-851d-a64ba20cac60
44 lines
1.2 KiB
NASM
44 lines
1.2 KiB
NASM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; ;;
|
|
;; 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
|
|
dd driver_name, 0 ; NAME W/O EXT, NOT PATH. SEE f68.16
|
|
|
|
include '../../debug.inc'
|
|
|
|
start:
|
|
mov eax, 68
|
|
mov ebx, 16
|
|
mov ecx, driver_name
|
|
int 0x40
|
|
|
|
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'
|
|
mov eax, -1
|
|
int 0x40
|
|
ok:
|
|
print 'LoadDrv: Driver loaded well'
|
|
mov eax, -1
|
|
int 0x40
|
|
|
|
i_end:
|
|
|
|
driver_name rb 1024
|
|
|
|
mem: |