Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/bhyve/smbiostbl.c
Show First 20 Lines • Show All 752 Lines • ▼ Show 20 Lines | smbios_type19_initializer(struct smbios_structure *template_entry, | ||||
if (guest_himem > 0) { | if (guest_himem > 0) { | ||||
curaddr = *endaddr; | curaddr = *endaddr; | ||||
smbios_generic_initializer(template_entry, template_strings, | smbios_generic_initializer(template_entry, template_strings, | ||||
curaddr, endaddr, n, size); | curaddr, endaddr, n, size); | ||||
type19 = (struct smbios_table_type19 *)curaddr; | type19 = (struct smbios_table_type19 *)curaddr; | ||||
type19->arrayhand = type16_handle; | type19->arrayhand = type16_handle; | ||||
type19->xsaddr = 4*GB; | type19->xsaddr = 4*GB; | ||||
type19->xeaddr = guest_himem; | type19->xeaddr = type19->xsaddr + guest_himem; | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
static void | static void | ||||
smbios_ep_initializer(struct smbios_entry_point *smbios_ep, uint32_t staddr) | smbios_ep_initializer(struct smbios_entry_point *smbios_ep, uint32_t staddr) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |