aboutsummaryrefslogtreecommitdiffstats
path: root/src/optionroms.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-04-19 23:18:54 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-04-19 23:18:54 -0400
commitd94411414754b65d9d745987db1ed84b92765f61 (patch)
tree014f7da79beba992130ccc6cff6ce53601bae4ee /src/optionroms.c
parentff82b24f0096b022e1071670ed5c886fc223b588 (diff)
downloadseabios-d94411414754b65d9d745987db1ed84b92765f61.tar.gz
Fixup previous memcpy optimization.
Different gcc versions handle __builtin_memcpy differently. Add -minline-all-string to force inlining of memcpy on old gcc. Always use __builtin_memcpy for all memcpy calls. Use memcpy4() for the option rom case where 4-byte accesses is important.
Diffstat (limited to 'src/optionroms.c')
-rw-r--r--src/optionroms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/optionroms.c b/src/optionroms.c
index def3febb..32fb44b3 100644
--- a/src/optionroms.c
+++ b/src/optionroms.c
@@ -171,7 +171,7 @@ copy_rom(struct rom_header *rom)
}
dprintf(4, "Copying option rom (size %d) from %p to %x\n"
, romsize, rom, next_rom);
- memcpy((void*)next_rom, rom, romsize);
+ memcpy4((void*)next_rom, rom, romsize);
return (struct rom_header *)next_rom;
}