forked from KolibriOS/kolibrios
1. loaddrv: show load drv result, show hint on error
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
This commit is contained in:
parent
a867b1b53a
commit
4f9a8d23e4
@ -3379,7 +3379,7 @@ Architecture Software Developer's Manual, Volume 3, Appendix B);
|
|||||||
* Имя драйвера чувствительно к регистру символов.
|
* Имя драйвера чувствительно к регистру символов.
|
||||||
Максимальная длина имени - 16 символов, включая завершающий
|
Максимальная длина имени - 16 символов, включая завершающий
|
||||||
нулевой символ, остальные символы игнорируются.
|
нулевой символ, остальные символы игнорируются.
|
||||||
* Драйвер с именем ABC загружается из файла /rd/1/drivers/ABC.obj.
|
* Драйвер с именем ABC загружается из файла /rd/1/drivers/ABC.sys.
|
||||||
|
|
||||||
---------------------- Константы для регистров: ----------------------
|
---------------------- Константы для регистров: ----------------------
|
||||||
eax - SF_SYS_MISC (68)
|
eax - SF_SYS_MISC (68)
|
||||||
|
@ -3348,7 +3348,7 @@ Remarks:
|
|||||||
* Driver name is case-sensitive.
|
* Driver name is case-sensitive.
|
||||||
Maximum length of the name is 16 characters, including
|
Maximum length of the name is 16 characters, including
|
||||||
terminating null character, the rest is ignored.
|
terminating null character, the rest is ignored.
|
||||||
* Driver ABC is loaded from file /rd/1/drivers/ABC.obj.
|
* Driver ABC is loaded from file /rd/1/drivers/ABC.sys.
|
||||||
|
|
||||||
---------------------- Constants for registers: ----------------------
|
---------------------- Constants for registers: ----------------------
|
||||||
eax - SF_SYS_MISC (68)
|
eax - SF_SYS_MISC (68)
|
||||||
|
@ -121,7 +121,9 @@ debug_outhex:
|
|||||||
and cl, 0x0f
|
and cl, 0x0f
|
||||||
mov cl, [__hexdigits + ecx]
|
mov cl, [__hexdigits + ecx]
|
||||||
pushad
|
pushad
|
||||||
mcall 63, 1
|
mov eax, 63
|
||||||
|
mov ebx, 1
|
||||||
|
int 0x40
|
||||||
popad
|
popad
|
||||||
dec edx
|
dec edx
|
||||||
jnz .new_char
|
jnz .new_char
|
||||||
|
2
programs/system/loaddrv/build.bat
Normal file
2
programs/system/loaddrv/build.bat
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@fasm loaddrv.asm loaddrv
|
||||||
|
@pause
|
@ -14,18 +14,31 @@ use32
|
|||||||
dd i_end
|
dd i_end
|
||||||
dd mem
|
dd mem
|
||||||
dd mem
|
dd mem
|
||||||
dd path, 0
|
dd driver_name, 0 ; NAME W/O EXT, NOT PATH. SEE f68.16
|
||||||
|
|
||||||
|
include '../../debug.inc'
|
||||||
|
|
||||||
start:
|
start:
|
||||||
mov eax, 68
|
mov eax, 68
|
||||||
mov ebx, 16
|
mov ebx, 16
|
||||||
mov ecx, path
|
mov ecx, driver_name
|
||||||
int 0x40
|
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
|
mov eax, -1
|
||||||
int 0x40
|
int 0x40
|
||||||
|
ok:
|
||||||
|
print 'LoadDrv: Driver loaded well'
|
||||||
|
mov eax, -1
|
||||||
|
int 0x40
|
||||||
|
|
||||||
i_end:
|
i_end:
|
||||||
|
|
||||||
path rb 1024
|
driver_name rb 1024
|
||||||
|
|
||||||
mem:
|
mem:
|
@ -54,8 +54,6 @@ VendorID 0x1085, 'Tulip Computers International BV'
|
|||||||
VendorID 0x1087, 'Cache Computer'
|
VendorID 0x1087, 'Cache Computer'
|
||||||
VendorID 0x108A, 'SBS Operations'
|
VendorID 0x108A, 'SBS Operations'
|
||||||
VendorID 0x108D, 'OLICOM'
|
VendorID 0x108D, 'OLICOM'
|
||||||
VendorID 0x10C8, 'NEOMAGIC CORPORATION'
|
|
||||||
VendorID 0x11AD, 'LITE-ON COMMUNICATIONS INC'
|
|
||||||
VendorID 0x11AE, 'SCITEX CORPORATION'
|
VendorID 0x11AE, 'SCITEX CORPORATION'
|
||||||
VendorID 0x11AF, 'AVID TECHNOLOGY INC'
|
VendorID 0x11AF, 'AVID TECHNOLOGY INC'
|
||||||
VendorID 0x11B0, 'V3 SEMICONDUCTOR INC./Quicklogic Corp'
|
VendorID 0x11B0, 'V3 SEMICONDUCTOR INC./Quicklogic Corp'
|
||||||
@ -194,7 +192,6 @@ VendorID 0x120E, 'Cyclades Corporation'
|
|||||||
VendorID 0x120F, 'ESSENTIAL COMMUNICATIONS'
|
VendorID 0x120F, 'ESSENTIAL COMMUNICATIONS'
|
||||||
VendorID 0x1214, 'PERFORMANCE TECHNOLOGIES.'
|
VendorID 0x1214, 'PERFORMANCE TECHNOLOGIES.'
|
||||||
VendorID 0x1216, 'PURUP-EskoFot A/S'
|
VendorID 0x1216, 'PURUP-EskoFot A/S'
|
||||||
VendorID 0x1217, 'O2MICRO.'
|
|
||||||
VendorID 0x121A, '3DFX INTERACTIVE'
|
VendorID 0x121A, '3DFX INTERACTIVE'
|
||||||
VendorID 0x121B, 'VIRATA LTD'
|
VendorID 0x121B, 'VIRATA LTD'
|
||||||
VendorID 0x1220, 'Ariel Corporation'
|
VendorID 0x1220, 'Ariel Corporation'
|
||||||
@ -551,7 +548,6 @@ VendorID 0x14DF, 'BASIS COMMUNICATIONS CORP'
|
|||||||
VendorID 0x14E1, 'INVERTEX'
|
VendorID 0x14E1, 'INVERTEX'
|
||||||
VendorID 0x14E2, 'INFOLIBRIA'
|
VendorID 0x14E2, 'INFOLIBRIA'
|
||||||
VendorID 0x14E3, 'AMTELCO'
|
VendorID 0x14E3, 'AMTELCO'
|
||||||
VendorID 0x14E4, 'BROADCOM CORPORATION'
|
|
||||||
VendorID 0x14E5, 'PIXELFUSION LTD'
|
VendorID 0x14E5, 'PIXELFUSION LTD'
|
||||||
VendorID 0x14E6, 'SHINING TECHNOLOGY INC'
|
VendorID 0x14E6, 'SHINING TECHNOLOGY INC'
|
||||||
VendorID 0x14E7, '3CX'
|
VendorID 0x14E7, '3CX'
|
||||||
|
Loading…
Reference in New Issue
Block a user