diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2012-05-16 12:51:22 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-07-16 19:05:48 -0500 |
commit | 3bba9a3ff18b6991bba4247898f4c26fa944a676 (patch) | |
tree | da3462c53eaf0670670b37f094c17444f1ce5c4c /src/include/sys | |
parent | 2aa5e0afac73384aaabe1fe1529898601be1155f (diff) | |
download | talos-hostboot-3bba9a3ff18b6991bba4247898f4c26fa944a676.tar.gz talos-hostboot-3bba9a3ff18b6991bba4247898f4c26fa944a676.zip |
Support for core_activate via IPI.
RTC: 37009
Change-Id: I56669805c86d9659a20ad7c26e5e9860c7a248c7
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1087
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/sys')
-rw-r--r-- | src/include/sys/misc.h | 17 | ||||
-rw-r--r-- | src/include/sys/vfs.h | 4 |
2 files changed, 18 insertions, 3 deletions
diff --git a/src/include/sys/misc.h b/src/include/sys/misc.h index fcf88f08a..90ff57964 100644 --- a/src/include/sys/misc.h +++ b/src/include/sys/misc.h @@ -92,11 +92,26 @@ ProcessorCoreType cpu_core_type(); uint8_t cpu_dd_level(); /** @fn cpu_thread_count() - * @breif Get the number of threads per cpu for this proctype + * @brief Get the number of threads per cpu for this proctype * @return # of threads per cpu */ size_t cpu_thread_count(); +/** @fn cpu_start_core + * @brief Have the kernel start a new core. + * + * @param[in] pir - PIR value of the first thread on the core. + * + * @note The kernel will start all threads on the requested core even + * though the callee only requests with a single PIR value. + * + * @return 0 or -(errno) on failure. + * + * @retval -ENXIO - The core ID was outside of the range the kernel is + * prepared to support. + */ +int cpu_start_core(uint64_t pir); + #ifdef __cplusplus } #endif diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h index 254a10350..b4b7da594 100644 --- a/src/include/sys/vfs.h +++ b/src/include/sys/vfs.h @@ -32,7 +32,7 @@ #endif // make TODO VFS_MODULE_MAX equal to the actual number of modules in the base image (+ 2?) -#define VFS_MODULE_MAX 64 +#define VFS_MODULE_MAX 16 // Extended use 4 4k pages // Extended Module Virtual address at 1GB #define VFS_EXTENDED_MODULE_VADDR (1 * 1024 * 1024 * 1024) @@ -51,7 +51,7 @@ #define VFS_MODULE_DEFINE_START(f) \ extern "C" void VFS_SYMBOL_START(void* args) \ { \ - f(args); \ + f(args); \ } #ifdef __cplusplus |