~ubuntu-branches/ubuntu/trusty/grub2/trusty

« back to all changes in this revision

Viewing changes to grub-core/commands/gptsync.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-01-16 15:18:04 UTC
  • mfrom: (17.6.38 experimental)
  • Revision ID: package-import@ubuntu.com-20140116151804-3foouk7fpqcq3sxx
Tags: 2.02~beta2-2
* Convert patch handling to git-dpm.
* Add bi-endian support to ELF parser (Tomohiro B Berry).
* Adjust restore_mkdevicemap.patch to mark get_kfreebsd_version as static,
  to appease "gcc -Werror=missing-prototypes".
* Cherry-pick from upstream:
  - Change grub-macbless' manual page section to 8.
* Install grub-glue-efi, grub-macbless, grub-render-label, and
  grub-syslinux2cfg.
* grub-shell: Pass -no-pad to xorriso when building floppy images.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
   Is it a problem?
38
38
*/
39
39
static void
40
 
lba_to_chs (int lba, grub_uint8_t *cl, grub_uint8_t *ch,
 
40
lba_to_chs (grub_uint32_t lba, grub_uint8_t *cl, grub_uint8_t *ch,
41
41
            grub_uint8_t *dh)
42
42
{
43
 
  int cylinder, head, sector;
44
 
  int sectors = 63, heads = 255, cylinders = 1024;
 
43
  grub_uint32_t cylinder, head, sector;
 
44
  grub_uint32_t sectors = 63, heads = 255, cylinders = 1024;
45
45
 
46
46
  sector = lba % sectors + 1;
47
47
  head = (lba / sectors) % heads;