-
Notifications
You must be signed in to change notification settings - Fork 370
Add initial support for powerpc64le initialization. #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
68fecdb
71c527b
7a0371d
120dbed
33cc865
273c798
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ CPUINFO_INTERNAL bool cpuinfo_linux_get_processor_package_id( | |
uint32_t processor, | ||
uint32_t package_id[restrict static 1]); | ||
CPUINFO_INTERNAL bool cpuinfo_linux_get_processor_core_id(uint32_t processor, uint32_t core_id[restrict static 1]); | ||
CPUINFO_INTERNAL bool cpuinfo_linux_get_processor_online_status(uint32_t processor, uint32_t* online_status); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be subject of another PR with some documentation explaining what this is and why it is needed only for Power system? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @malfet ,Please go through the https://www.redbooks.ibm.com/redpapers/pdfs/redp5649.pdf |
||
|
||
CPUINFO_INTERNAL bool cpuinfo_linux_detect_possible_processors( | ||
uint32_t max_processors_count, | ||
|
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]); |
Uh oh!
There was an error while loading. Please reload this page.