Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: host/arch/x86/lib/crossystem_arch.c

Issue 6813054: Add crossystem arch (reports x86 or arm, depending on platform) (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « host/arch/arm/lib/crossystem_arch.c ('k') | utility/crossystem_main.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: host/arch/x86/lib/crossystem_arch.c
diff --git a/host/arch/x86/lib/crossystem_arch.c b/host/arch/x86/lib/crossystem_arch.c
index 1e1f75b8cc6ad94f684abaa60e2249ef0964dd5c..b8e6add597e9be5d70bc9cd1357c45a21dbff8ec 100644
--- a/host/arch/x86/lib/crossystem_arch.c
+++ b/host/arch/x86/lib/crossystem_arch.c
@@ -529,7 +529,9 @@ int VbGetArchPropertyInt(const char* name) {
const char* VbGetArchPropertyString(const char* name, char* dest, int size) {
- if (!strcasecmp(name,"hwid")) {
+ if (!strcasecmp(name,"arch")) {
+ return StrCopy(dest, "x86", size);
+ } else if (!strcasecmp(name,"hwid")) {
return ReadFileString(dest, size, ACPI_BASE_PATH "/HWID");
} else if (!strcasecmp(name,"fwid")) {
return ReadFileString(dest, size, ACPI_BASE_PATH "/FWID");
« no previous file with comments | « host/arch/arm/lib/crossystem_arch.c ('k') | utility/crossystem_main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698