[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] Fix some PCI_BIOS wrappers routines



Please commit this patch.
Thanks.

Commit message:

For some PCI_BIOS functions it was missing to pass one of the
parameters (handle) from the stack to the D0 register.
Index: sys/arch/pcibios.S
===================================================================
RCS file: /mint/freemint/sys/arch/pcibios.S,v
retrieving revision 1.2
diff -u -8 -r1.2 pcibios.S
--- sys/arch/pcibios.S	26 Mar 2014 21:59:16 -0000	1.2
+++ sys/arch/pcibios.S	14 May 2014 14:46:51 -0000
@@ -234,34 +234,37 @@
 	move.l _tab_funcs_pci,A1
 	move.l 84(A1),A1
 	move.l D2,-(SP)
 	jsr (A1)
 	move.l (SP)+,D2
 	rts
 
 _Fast_read_mem_byte:
+	move.l 4(SP),D0          // handle
 	move.l 8(SP),D1          // address to access (in PCI memory address space)
 	move.l _tab_funcs_pci,A1
 	move.l 88(A1),A1
 	move.l D2,-(SP)
 	jsr (A1)
 	move.l (SP)+,D2
 	rts
 
 _Fast_read_mem_word:
+	move.l 4(SP),D0          // handle
 	move.l 8(SP),D1          // address to access (in PCI memory address space)
 	move.l _tab_funcs_pci,A1
 	move.l 92(A1),A1
 	move.l D2,-(SP)
 	jsr (A1)
 	move.l (SP)+,D2
 	rts
 
 _Fast_read_mem_longword:
+	move.l 4(SP),D0          // handle
 	move.l 8(SP),D1          // address to access (in PCI memory address space)
 	move.l _tab_funcs_pci,A1
 	move.l 96(A1),A1
 	move.l D2,-(SP)
 	jsr (A1)
 	move.l (SP)+,D2
 	rts
 
@@ -315,34 +318,37 @@
 	move.l _tab_funcs_pci,A1
 	move.l 120(A1),A1
 	move.l D2,-(SP)
 	jsr (A1)
 	move.l (SP)+,D2
 	rts
 
 _Fast_read_io_byte:
+	move.l 4(SP),D0          // handle
 	move.l 8(SP),D1          // address to access (in PCI I/O address space)
 	move.l _tab_funcs_pci,A1
 	move.l 124(A1),A1
 	move.l D2,-(SP)
 	jsr (A1)
 	move.l (SP)+,D2
 	rts
 
 _Fast_read_io_word:
+	move.l 4(SP),D0          // handle
 	move.l 8(SP),D1          // address to access (in PCI I/O address space)
 	move.l _tab_funcs_pci,A1
 	move.l 128(A1),A1
 	move.l D2,-(SP)
 	jsr (A1)
 	move.l (SP)+,D2
 	rts
 
 _Fast_read_io_longword:
+	move.l 4(SP),D0          // handle
 	move.l 8(SP),D1          // address to access (in PCI I/O address space)
 	move.l _tab_funcs_pci,A1
 	move.l 132(A1),A1
 	move.l D2,-(SP)
 	jsr (A1)
 	move.l (SP)+,D2
 	rts