[parisc-linux] Missing directories from CVS
Grant Grundler
grundler@cup.hp.com
Thu, 23 Sep 1999 09:59:42 -0700
Grant Grundler wrote:
...
> I did a checkout, make config (for 715), make dep.
> (make vmlinux is still running)
vmlinux built shortly after I posted...
> gcc is used to build scripts/mkdep, scripts/split-include and bin2hex.
Add one more to the list: arch/parisc/boot/mkImage
And on this one "cc" gets picky about pointer math.
Here's my diff for mkImage.c:
118c118
< *entry_point = *(unsigned long*)(ptr + 6*sizeof(long));
---
> *entry_point = *(unsigned long*)((char *)ptr + 6*sizeof(long));
131,132c131,132
< short magic = *(short *)(ptr+sizeof(short));
< long *arr = (unsigned long *)ptr;
---
> short magic = *(short *)((char *)ptr+sizeof(short));
> long *arr = (long *)ptr;
Any objections to committing this change?
On second thought, both changes should be written as:
*entry_point = ((unsigned long *)ptr)[6];
and
short magic = ((short *)ptr)[1];
thanks,
grant