Kernel 0.9.1 : NIC Drivers, Fixed headers to solve ETHx device name preventing TCPIP to load properly

This commit is contained in:
Rémy GIBERT 2018-06-12 12:19:53 +02:00
parent 109fd3714a
commit 51820dfb56
6 changed files with 15 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -131,19 +131,20 @@ DumpHeader ldy #S.DEV.DRV.JMP+1
DumpStatus >LDA.G DEV.S DumpStatus >LDA.G DEV.S
bpl .1 bpl .1
ldy #S.DSTAT.SIZE lda #0
lda (ZPPTR2),y >PUSHA
>STA.G DEV.SIZE
ldy #S.DSTAT.SIZE+1
lda (ZPPTR2),y
>STA.G DEV.SIZE+1
ldy #S.DSTAT.SIZE+2 ldy #S.DSTAT.SIZE+2
lda (ZPPTR2),y lda (ZPPTR2),y
>STA.G DEV.SIZE+2 >PUSHA
>PUSHEA.G DEV.SIZE dey
lda (ZPPTR2),y
>PUSHA
dey
lda (ZPPTR2),y
>PUSHA
.1 ldy #S.DSTAT.VERSION+1 .1 ldy #S.DSTAT.VERSION+1
>PUSHB (ZPPTR2),y >PUSHB (ZPPTR2),y
@ -192,7 +193,6 @@ MSG.SFLAGS .AS "BWRLNEIO"
DS.START DS.START
DEV.ID .BS 1 DEV.ID .BS 1
DEV.S .BS 1 DEV.S .BS 1
DEV.SIZE .BS 4
DEV.SFLAGS .BS 9 DEV.SFLAGS .BS 9
DS.END DS.END
.ED .ED

View File

@ -51,7 +51,7 @@ Dev.Detect >STYA Args
cmp #DEVID cmp #DEVID
beq .3 beq .3
.2 dec DEV.HEADER.NAME+4 .2 dec DEV.HEADER.NAME+3
txa txa
sec sec
sbc #$10 sbc #$10
@ -72,6 +72,7 @@ Dev.Detect >STYA Args
>LDYA ARGS >LDYA ARGS
>STYA ZPTmpPTR >STYA ZPTmpPTR
lda (ZPTmpPTR) lda (ZPTmpPTR)
beq .4 beq .4

View File

@ -75,7 +75,7 @@ Dev.Detect >STYA Args
cmp #2000 cmp #2000
beq .3 beq .3
.2 dec DEV.HEADER.NAME+4 .2 dec DEV.HEADER.NAME+3
txa txa
sec sec
sbc #$10 sbc #$10
@ -96,6 +96,7 @@ Dev.Detect >STYA Args
>LDYA ARGS >LDYA ARGS
>STYA ZPTmpPTR >STYA ZPTmpPTR
lda (ZPTmpPTR) lda (ZPTmpPTR)
bne .4 bne .4
@ -140,7 +141,7 @@ DEV.HEADER cld
jmp (DRV.CS.START,x) jmp (DRV.CS.START,x)
.DA #0 .DA #0
.BS 6 .BS 6
DEV.HEADER.NAME >PSTR "ETH7" DEV.HEADER.NAME .AZ "ETH7"
*-------------------------------------- *--------------------------------------
* Driver Code * Driver Code
*-------------------------------------- *--------------------------------------