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

« back to all changes in this revision

Viewing changes to grub-core/efiemu/prepare.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-09-13 18:02:04 UTC
  • mfrom: (1.17.15 upstream)
  • mto: (17.6.27 experimental)
  • mto: This revision was merged to the branch mainline in revision 145.
  • Revision ID: package-import@ubuntu.com-20120913180204-mojnmocbimlom4im
Tags: upstream-2.00
ImportĀ upstreamĀ versionĀ 2.00

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
      grub_memcpy (&(conftables[i].vendor_guid), &(cur->guid),
98
98
                       sizeof (cur->guid));
99
99
      if (cur->get_table)
100
 
        conftables[i].vendor_table
101
 
          = PTR_TO_UINT64 (cur->get_table (cur->data));
 
100
        conftables[i].vendor_table = (grub_addr_t) cur->get_table (cur->data);
102
101
      else
103
 
        conftables[i].vendor_table = PTR_TO_UINT64 (cur->data);
 
102
        conftables[i].vendor_table = (grub_addr_t) cur->data;
104
103
    }
105
104
 
106
105
  err = SUFFIX (grub_efiemu_crc) ();
134
133
  runtime_services = (struct SUFFIX (grub_efiemu_runtime_services) *)
135
134
        ((grub_uint8_t *) grub_efiemu_mm_obtain_request (handle) + off);
136
135
 
 
136
  runtime_services->hdr.crc32 = 0;
137
137
  GRUB_MD_CRC32->init(crc32_context);
138
138
  GRUB_MD_CRC32->write(crc32_context, runtime_services, runtime_services->hdr.header_size);
139
139
  GRUB_MD_CRC32->final(crc32_context);
146
146
    return err;
147
147
 
148
148
  /* compute CRC32 of system table */
 
149
  SUFFIX (grub_efiemu_system_table)->hdr.crc32 = 0;
149
150
  GRUB_MD_CRC32->init(crc32_context);
150
151
  GRUB_MD_CRC32->write(crc32_context, SUFFIX (grub_efiemu_system_table),
151
152
                      SUFFIX (grub_efiemu_system_table)->hdr.header_size);