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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 23 May 2007 01:15:25 +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,
I have tried the patch, it works.
could you explain it for me? thanks very much.

Regards
dave

2007/5/22, H. Peter Anvin <hpa@...or.com>:
> Could you try the attached patch for me?
>
>         -hpa
>
> diff --git a/arch/i386/boot/edd.c b/arch/i386/boot/edd.c
> index 84a0302..9697a56 100644
> --- a/arch/i386/boot/edd.c
> +++ b/arch/i386/boot/edd.c
> @@ -47,8 +47,9 @@ static int read_sector(u8 devno, u64 lba, void *buf)
>         si = (size_t)&dapa;
>         dx = devno;
>         asm("pushfl; stc; int $0x13; setc %%al; popfl"
> -           : "+a" (ax), "+S" (si), "+d" (devno)
> -           : : "ebx", "ecx", "edi");
> +           : "+a" (ax), "+S" (si), "+d" (dx)
> +           : "m" (dapa)
> +           : "ebx", "ecx", "edi", "memory");
>
>         if (!(u8)ax)
>                 return 0;       /* OK */
> @@ -59,7 +60,7 @@ static int read_sector(u8 devno, u64 lba, void *buf)
>         bx = (size_t)buf;
>         asm("pushfl; stc; int $0x13; setc %%al; popfl"
>             : "+a" (ax), "+c" (cx), "+d" (dx), "+b" (bx)
> -           : : "esi", "edi");
> +           : : "esi", "edi", "memory");
>
>         return -(u8)ax;         /* 0 or -1 */
>  }
>
>
-
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