Added new platform function to get cpu string (#3533)

Co-authored-by: cold-brewed <cold-brewed@users.noreply.github.com>
This commit is contained in:
cold-brewed
2023-08-09 17:12:27 -04:00
committed by GitHub
parent bf18fa3297
commit 15013e1ede
4 changed files with 80 additions and 0 deletions

View File

@@ -1309,6 +1309,12 @@ plat_language_code(char *langcode)
return 0;
}
void
plat_get_cpu_string(char *outbuf, uint8_t len) {
char cpu_string[] = "Unknown";
strncpy(outbuf, cpu_string, len);
}
/* Converts back the language code to LCID */
void
plat_language_code_r(uint32_t lcid, char *outbuf, int len)