diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2011-07-26 12:58:29 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2011-07-26 12:58:29 +0000 |
| commit | d70348d475b9c979c00882ec25bebebaf2308d96 (patch) | |
| tree | ccbbb66bcb4fc39f687612d35e419f453bc92bbc /sys/boot | |
| parent | 135314e02a9d737fb830e41505abc362d22bf04e (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/pc98/boot2/boot2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/pc98/boot2/boot2.c b/sys/boot/pc98/boot2/boot2.c index 54082ad207fa..259d5de93fe3 100644 --- a/sys/boot/pc98/boot2/boot2.c +++ b/sys/boot/pc98/boot2/boot2.c @@ -485,7 +485,7 @@ load(void) return; p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); bootinfo.bi_symtab = VTOP(p); - memcpy(p, &hdr.ex.a_syms, sizeof(hdr.ex.a_syms)); + *(uint32_t*)p = hdr.ex.a_syms; p += sizeof(hdr.ex.a_syms); if (hdr.ex.a_syms) { if (xfsread(ino, p, hdr.ex.a_syms)) @@ -522,7 +522,7 @@ load(void) if (xfsread(ino, &es, sizeof(es))) return; for (i = 0; i < 2; i++) { - memcpy(p, &es[i].sh_size, sizeof(es[i].sh_size)); + *(Elf32_Word *)p = es[i].sh_size; p += sizeof(es[i].sh_size); fs_off = es[i].sh_offset; if (xfsread(ino, p, es[i].sh_size)) |
