Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/stand/boot2440 fix pointer cast; mark variab...
details: https://anonhg.NetBSD.org/src/rev/35ace38a594d
branches: trunk
changeset: 791108:35ace38a594d
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 04 21:54:59 2013 +0000
description:
fix pointer cast; mark variable used
diffstat:
sys/arch/evbarm/stand/boot2440/main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 7e9cff4260ff -r 35ace38a594d sys/arch/evbarm/stand/boot2440/main.c
--- a/sys/arch/evbarm/stand/boot2440/main.c Mon Nov 04 21:54:58 2013 +0000
+++ b/sys/arch/evbarm/stand/boot2440/main.c Mon Nov 04 21:54:59 2013 +0000
@@ -242,7 +242,7 @@
*/
lseek(fd, (off_t)0, SEEK_SET);
read(fd, &hdr, sizeof(hdr));
- elfpriv = *(unsigned short *)&hdr[0x24];
+ memcpy(&elfpriv, &hdr[0x24], sizeof(elfpriv));
entry = (void *)marks[MARK_ENTRY];
if (elfpriv == 0x0602) {
@@ -399,6 +399,7 @@
for(l=0; l<0xffffff; l++) {
v = *((int*)(S3C2440_TIMER_BASE+TIMER_TCNTO(0)));
}
+ __USE(v);
}
}
Home |
Main Index |
Thread Index |
Old Index