code 28 in msdos_partition()
I figured out line 434 (of 497) fs/partitions/msdos.c ("if (!NR_SECTS(p))") is causing the code 28 trap (unaligned data reference trap) despite the use of get_unaligned() macro. Seems get_unaligned() just isn't supported. I tried tracking this down in order to fix it but got distracted by another problem. If someone feels like they want to contribute in
a small way, fixing get/put unaligned would be helpful.
The problem which distracted me was the use of generic swap macros by get_unaligned. parisc-linux defines architecture specific macros and I couldn't figure out why those were NOT being used. Any takers for this too?
I'm punting for now on both problems because:
a) opportunity for someone else to contribute
b) I can work more on the HPMC problems.
thanks,
grant
=
= I figured out line 434 (of 497) fs/partitions/msdos.c
= ("if (!NR_SECTS(p))") is causing the code 28 trap (unaligned data = reference trap) despite the use of get_unaligned() macro. Seems = get_unaligned() just isn't supported. I tried tracking this down in = order to fix it but got distracted by another problem.
= If someone feels like they want to contribute in
= a small way, fixing get/put unaligned would be helpful.
I'm interested in looking at this problem and seeing disks work in general. But I can't help since I don't have a box which seems to be able to find SCSI drives (tried 712, b180, c360, and c3k). Can you give me a clue how to reproduce what you're seeing?
With my limited experience with Linux disks and software, the partition table access is usually aligned right anyway, so I think alignment traps here should be rare.
= The problem which distracted me was the use of generic = swap macros by get_unaligned. parisc-linux defines architecture = specific macros and I couldn't figure out why those
= were NOT being used. Any takers for this too?
Are you asking about le32_to_cpu() versus __le32_to_cpu()? (Not that I have an answer -- I'm just wondering if that's the question)
-Paul Bame
Quoted 4 lines · Paul Bame
I'm interested in looking at this problem and seeing disks work in general. But I can't help since I don't have a box which seems to be able to find SCSI drives (tried 712, b180, c360, and c3k). Can you give me a clue how to reproduce what you're seeing?
I've posted my .config on puffin.external.hp.com:~grundler/config.SCSI. This works on the c3000. Folks who want to see that file but don't have access should please e-mail me privately.
Quoted 3 lines
With my limited experience with Linux disks and software, the partition table access is usually aligned right anyway, so I think alignment traps here should be rare.
Agreed. but not in this case.
Quoted 7 lines
= The problem which distracted me was the use of generic = swap macros by
get_unaligned. parisc-linux defines architecture = specific macros and I couldn't figure out why those
= were NOT being used. Any takers for this too?Are you asking about
le32_to_cpu()versus__le32_to_cpu()? (Not that I have an answer -- I'm just wondering if that's the question)
I'm seeing use of
#define ___swab32(x) \
((__u32)( \
(((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
(((__u32)(x) & (__u32)0xff000000UL) >> 24) ))(from include/linux/byteorder/swab.h)
Instead of
static __inline__ __const__ __u32 ___arch__swab32(__u32 x)
{
unsigned int temp;
__asm__("shd %0, %0, 16, %1\n\t" /* shift abcdabcd -> cdab */
"dep %1, 15, 8, %1\n\t" /* deposit cdab -> cbab */
"shd %0, %1, 8, %0" /* shift abcdcbab -> dcba */
: "=r" (x), "=&r" (temp)
: "0" (x));
return x;
}(from include/asm-parisc/byteorder.h)
grant
Grant Grundler
Unix Development Lab
+1.408.447.7253