ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/ether.cpp
(Generate patch)

Comparing BasiliskII/src/ether.cpp (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.2 by cebix, 1999-11-03T10:56:13Z

# Line 152 | Line 152 | int16 EtherControl(uint32 pb, uint32 dce
152                          if (size > 18)
153                                  size = 18;
154                          WriteMacInt16(pb + eDataSize, size);    // Number of bytes actually written
155 <                        memcpy(Mac2HostAddr(ReadMacInt32(pb + ePointer)), buf, size);
155 >                        Host2Mac_memcpy(ReadMacInt32(pb + ePointer), buf, size);
156                          return noErr;
157                  }
158  
# Line 175 | Line 175 | void EtherReadPacket(uint8 **src, uint32
175   {
176          D(bug("EtherReadPacket src %08lx, dest %08lx, len %08lx, remaining %08lx\n", *src, dest, len, remaining));
177          uint32 todo = len > remaining ? remaining : len;
178 <        memcpy(Mac2HostAddr(dest), *src, todo);
178 >        Host2Mac_memcpy(dest, *src, todo);
179          *src += todo;
180          dest += todo;
181          len -= todo;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines