210-remove_inline_asm.patch 441 B

1234567891011121314
  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. sector += (byte_offset >> sector_size_lg2);
  5. byte_offset &= (buf_geom.sector_size - 1);
  6. - asm volatile ("shl%L0 %1,%0"
  7. - : "=r"(sector)
  8. - : "Ic"((int8_t)(ISO_SECTOR_BITS - sector_size_lg2)),
  9. - "0"(sector));
  10. + sector <<= ISO_SECTOR_BITS - sector_size_lg2;
  11. #if !defined(STAGE1_5)
  12. if (disk_read_hook && debug)