lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 21 May 2007 08:41:43 +0000
From:	"young dave" <hidave.darkstar@...il.com>
To:	"H. Peter Anvin" <hpa@...or.com>
Cc:	"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Subject: Re: 2.6.22-rc1-mm1

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 majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ