Re: 2.6.22-rc1-mm1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

kernel booting and stopped in edd.c:read_sector.

I add debug messages around the two inline assemblly sentence, recompile kernel,
now strange thing happend, the kernel booting directly, but the printf
messages can't be seen because it's too rapid.

can we use printk in boot code?

the change of edd.c:
--- edd.c.bak   2007-05-21 14:38:34.000000000 +0000
+++ edd.c       2007-05-21 15:58:02.000000000 +0000
@@ -47,9 +47,11 @@ static int read_sector(u8 devno, u64 lba
       ax = 0x4200;            /* Extended Read */
       si = (size_t)&dapa;
       dx = devno;
+       printf("before first inline\n");
       asm("pushfl; stc; int $0x13; setc %%al; popfl"
           : "+a" (ax), "+S" (si), "+d" (devno)
           : : "ebx", "ecx", "edi");
+       printf("after first inline\n");

       if (!(u8)ax)
               return 0;       /* OK */
@@ -58,9 +60,11 @@ static int read_sector(u8 devno, u64 lba
       cx = 0x0001;            /* Sector 0-0-1 */
       dx = devno;
       bx = (size_t)buf;
+       printf("before second inline\n");
       asm("pushfl; stc; int $0x13; setc %%al; popfl"
           : "+a" (ax), "+c" (cx), "+d" (dx), "+b" (bx)
           : : "esi", "edi");
+       printf("after second inline\n");

       return -(u8)ax;         /* 0 or -1 */
}



Regards
dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux