Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Unaligned traps on kernel startup
Date: Mon, 31 Aug 1998 19:49:55 -0600 (MDT)	[thread overview]
Message-ID: <199809010149.TAA12202@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <35EAE29A.04A8@yoda.omnicron.com> from "Mike \"Ford\" Ditto" at Aug 31, 98 10:51:22 am

Mike \"Ford\" Ditto wrote:
> 
> > It is from linux/drivers/block/genhd.c and traps happen on lines
> > marked with '---->':
> >
> > 329				for (i = 0; i < 4 ; i++) {
> > 330					struct partition *q = &p[i];
> > 331					if (NR_SECTS(q)
> > 332				----->	   && (q->sector & 63) == 1
> > 333				----->	   && (q->end_sector & 63) == 63) {
> >
> > sizeof(struct partition) appears to be 16 so maybe I miss something
> > but it seems a bit of strange that I see only two pairs of traps and
> > not four.
> 
> Maybe you only have two actual partitions on that disk?

No. Actually there are four.  Something seems to align the other two.

> The fix for the traps is to have those marked lines use get_aligned the
> way the line immediately above them does, as explained at the top of
> genhd.c:

Ah, thanks.  I missed an existence of this macro.  I will have to 
try that.

   Michal


  reply	other threads:[~1998-09-01  1:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-31  6:01 Unaligned traps on kernel startup Michal Jaegermann
1998-08-31  7:55 ` furio ercolessi
1998-08-31 12:19 ` Uncle George
1998-08-31 17:51 ` Mike "Ford" Ditto
1998-09-01  1:49   ` Michal Jaegermann [this message]
1998-08-31 19:10 ` Richard Henderson
1998-09-01  5:55   ` Michal Jaegermann
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox