-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for powerpc64le initialization.
* Adds header definitions for PPC64le * Adds support to construct the processor, core, cluster, package and cache(L1i,L1d,L2 and L3) information reported by the system. Test: Build and ran cpu_info on PPC64le linux machine. confirmed that it properly reports the logical processors, cores, clusters, packages and cache information.
- Loading branch information
1 parent
cebb093
commit 68fecdb
Showing
19 changed files
with
1,778 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
#include <cpuinfo.h> | ||
|
||
enum cpuinfo_powerpc_chipset_vendor { | ||
cpuinfo_powerpc_chipset_vendor_unknown = 0, | ||
cpuinfo_powerpc_chipset_vendor_ibm | ||
}; | ||
void cpuinfo_powerpc_decode_vendor_uarch( | ||
uint32_t vendor_id, | ||
enum cpuinfo_vendor vendor[restrict static 1], | ||
enum cpuinfo_uarch uarch[restrict static 1]); | ||
|
||
void cpuinfo_powerpc_decode_cache( | ||
struct cpuinfo_cache l1i[restrict static 1], | ||
struct cpuinfo_cache l1d[restrict static 1], | ||
struct cpuinfo_cache l2[restrict static 1], | ||
struct cpuinfo_cache l3[restrict static 1]); |
Oops, something went wrong.