grub: replace an unnecessary piece of inline assembly that breaks the build on recent...
[openwrt/svn-archive/archive.git] / package / grub / patches / 210-remove_inline_asm.patch
1 --- a/stage2/fsys_iso9660.c
2 +++ b/stage2/fsys_iso9660.c
3 @@ -83,10 +83,7 @@ iso9660_devread (int sector, int byte_of
4
5 sector += (byte_offset >> sector_size_lg2);
6 byte_offset &= (buf_geom.sector_size - 1);
7 - asm volatile ("shl%L0 %1,%0"
8 - : "=r"(sector)
9 - : "Ic"((int8_t)(ISO_SECTOR_BITS - sector_size_lg2)),
10 - "0"(sector));
11 + sector <<= ISO_SECTOR_BITS - sector_size_lg2;
12
13 #if !defined(STAGE1_5)
14 if (disk_read_hook && debug)