|
@@ -112,15 +112,24 @@ EFI_ATTR_SHOW(fw_vendor);
|
|
|
EFI_ATTR_SHOW(runtime);
|
|
|
EFI_ATTR_SHOW(config_table);
|
|
|
|
|
|
+static ssize_t fw_platform_size_show(struct kobject *kobj,
|
|
|
+ struct kobj_attribute *attr, char *buf)
|
|
|
+{
|
|
|
+ return sprintf(buf, "%d\n", efi_enabled(EFI_64BIT) ? 64 : 32);
|
|
|
+}
|
|
|
+
|
|
|
static struct kobj_attribute efi_attr_fw_vendor = __ATTR_RO(fw_vendor);
|
|
|
static struct kobj_attribute efi_attr_runtime = __ATTR_RO(runtime);
|
|
|
static struct kobj_attribute efi_attr_config_table = __ATTR_RO(config_table);
|
|
|
+static struct kobj_attribute efi_attr_fw_platform_size =
|
|
|
+ __ATTR_RO(fw_platform_size);
|
|
|
|
|
|
static struct attribute *efi_subsys_attrs[] = {
|
|
|
&efi_attr_systab.attr,
|
|
|
&efi_attr_fw_vendor.attr,
|
|
|
&efi_attr_runtime.attr,
|
|
|
&efi_attr_config_table.attr,
|
|
|
+ &efi_attr_fw_platform_size.attr,
|
|
|
NULL,
|
|
|
};
|
|
|
|