[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] PATCH: hw/rtl8139.c for Sparc (BigEndian) Hosts
From: |
Ben Taylor |
Subject: |
[Qemu-devel] PATCH: hw/rtl8139.c for Sparc (BigEndian) Hosts |
Date: |
Mon, 12 Mar 2007 18:17:41 -0400 |
This patch is to fix a big-endian problem in the RTL-8139 driver. The additional
debugging is mine, and the actual code fixes are by Garrison (Igor Kovalenko -
address@hidden). Code has been tested on 32-bit Solaris x86 and 32-bit
Solaris Sparc hosts, with and without debugging.
There were two problems.
1) the setup of the MAC address was not big-endian friendly
2) due to some feature of le32_to_cpu, the pointer to the buffer
for the packet was off in never-never land. Just setting the
val in rtl8139_TxAddr_write was enough to fix the problem,
and networking both in and out are working properly on a sparc host.
Ben
qemu-rtl8139-sparc.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] PATCH: hw/rtl8139.c for Sparc (BigEndian) Hosts,
Ben Taylor <=