Rev 4322 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4322 | Rev 7644 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | dd 1 |
12 | dd 1 |
13 | dd start |
13 | dd start |
14 | dd i_end |
14 | dd i_end |
15 | dd mem |
15 | dd mem |
16 | dd mem |
16 | dd mem |
- | 17 | dd driver_name, 0 ; NAME W/O EXT, NOT PATH. SEE f68.16 |
|
- | 18 | ||
17 | dd path, 0 |
19 | include '../../debug.inc' |
Line 18... | Line 20... | ||
18 | 20 | ||
19 | start: |
21 | start: |
20 | mov eax, 68 |
22 | mov eax, 68 |
21 | mov ebx, 16 |
23 | mov ebx, 16 |
22 | mov ecx, path |
24 | mov ecx, driver_name |
Line -... | Line 25... | ||
- | 25 | int 0x40 |
|
- | 26 | ||
- | 27 | cmp eax, 0 |
|
- | 28 | jne ok |
|
- | 29 | nok: |
|
- | 30 | print 'LoadDrv: Error loading driver' |
|
- | 31 | print 'Driver must be in /sys/drivers/ folder.' |
|
- | 32 | print 'Its name must be w/o extension and it is case-sensitive' |
|
- | 33 | mov eax, -1 |
|
- | 34 | int 0x40 |
|
23 | int 0x40 |
35 | ok: |
24 | 36 | print 'LoadDrv: Driver loaded well' |
|
- | 37 | mov eax, -1 |
|
25 | mov eax, -1 |
38 | int 0x40 |
Line 26... | Line 39... | ||
26 | int 0x40 |
39 | |
Line 27... | Line 40... | ||
27 | i_end: |
40 | i_end: |
28 | 41 |