From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18098 invoked from network); 31 Aug 1998 06:01:10 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 31 Aug 1998 06:01:10 -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 CAA08399 for ; Mon, 31 Aug 1998 02:01:14 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id AAA10916 for axp-list@redhat.com; Mon, 31 Aug 1998 00:01:06 -0600 From: Michal Jaegermann Message-Id: <199808310601.AAA10916@ellpspace.math.ualberta.ca> Subject: Unaligned traps on kernel startup To: axp-list@redhat.com Date: Mon, 31 Aug 1998 00:01:06 -0600 (MDT) Content-Type: text If on Alpha CONFIG_BLK_DEV_IDE is defined then with current kernels (2.0.3x) one see the following on a startup: kernel: unaligned trap at fffffc00003a3278: fffffc00000061be 28 1 kernel: unaligned trap at fffffc00003a328c: fffffc00000061c2 28 2 kernel: unaligned trap at fffffc00003a3278: fffffc00000061ce 28 1 kernel: unaligned trap at fffffc00003a328c: fffffc00000061d2 28 2 Here is the corresponding kernel code: 0xfffffc00003a3278 : ldl t0,0(t2) 0xfffffc00003a327c : extbl t0,0x2,t0 0xfffffc00003a3280 : and t0,0x3f,t0 0xfffffc00003a3284 : cmpeq t0,0x1,t0 0xfffffc00003a3288 : beq t0,0xfffffc00003a32ec 0xfffffc00003a328c : ldl t1,4(t2) 0xfffffc00003a3290 : extbl t1,0x2,t0 0xfffffc00003a3294 : and t0,0x3f,t0 0xfffffc00003a3298 : cmpeq t0,0x3f,t0 0xfffffc00003a329c : 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. I realize that this is likely a cosmetic issue but does anybody has an idea how to fix that? It seems likely that something of that sort is also responsible for all these complaints you see every time when you fire 'fdisk'. All of this does not give a warm fuzzy feeling to a newbie. Thanks, Michal p.s. A code quoted above is a part of a bigger piece which tries to gues a "correct" C/H/S translation for IDE disks. This guessing looks somewhat fishy anyway, especially on Alpha without an Intel BIOS, but we are likely stuck with it - at least for a time beeing.