[v0.82][ARM][ASCII][Refactoring] ARM ascii changes. Remove the assumption that all sockets are equal in a ARM based SoC. Little more support for ARM processors. Add ARM color style

This commit is contained in:
Dr-Noob
2020-11-06 10:02:59 +01:00
parent 4f1722ead6
commit 9c8e169592
7 changed files with 130 additions and 14 deletions

View File

@@ -7,6 +7,7 @@
#define COLOR_STR_INTEL "intel"
#define COLOR_STR_AMD "amd"
#define COLOR_STR_ARM "arm"
static const char *SYTLES_STR_LIST[] = {
[STYLE_EMPTY] = NULL,
@@ -107,6 +108,11 @@ bool parse_color(char* optarg, struct colors** cs) {
strcpy(str_to_parse, COLOR_DEFAULT_AMD);
free_ptr = true;
}
else if(strcmp(optarg, COLOR_STR_ARM) == 0) {
str_to_parse = malloc(sizeof(char) * 46);
strcpy(str_to_parse, COLOR_DEFAULT_ARM);
free_ptr = true;
}
else {
str_to_parse = optarg;
free_ptr = false;