From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11419 invoked from network); 1 Sep 1998 01:50:00 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 1 Sep 1998 01:50:00 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA25071 for ; Mon, 31 Aug 1998 21:50:47 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id TAA12202 for axp-list@redhat.com; Mon, 31 Aug 1998 19:49:55 -0600 From: Michal Jaegermann Message-Id: <199809010149.TAA12202@ellpspace.math.ualberta.ca> Subject: Re: Unaligned traps on kernel startup To: axp-list@redhat.com Date: Mon, 31 Aug 1998 19:49:55 -0600 (MDT) In-Reply-To: <35EAE29A.04A8@yoda.omnicron.com> from "Mike \"Ford\" Ditto" at Aug 31, 98 10:51:22 am Content-Type: text 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