summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Improve std::map by using a SplayTree container.Patrick Williams2012-03-292-1/+515
| | | | | | | | | | | | | | | | | Originally std::map was implemented as a linked list. Some of the maps in PORE and PRD code will be big enough that this is very inefficient. Converted std::map to a binary search tree implementation based on the Splay-Tree algorithm. RTC: 34071 Change-Id: If77c017f5d95920f8010991e7f087cbe571ca2e9 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/790 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Bradley W. Bishop <bradleyb@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support P8 mambo model and Murano proc.Patrick Williams2012-03-212-2/+2
| | | | | | | | | RTC: 38206 Change-Id: Iab79041931db533ad6b6ebd057c1ef9fe4c4b8cc Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/714 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add non-blocking sync msg interface.Patrick Williams2012-03-031-1/+15
| | | | | | | | | Change-Id: I808fc55ca4706bf03df63b1a72acc87ddba20822 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/705 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Conditional Variable supportDoug Gilbert2012-01-251-4/+92
| | | | | | | Change-Id: Ib715b3a4e775ef183244e8769c6560a85ac19104 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/612 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Interrupt presenter implementationDoug Gilbert2012-01-053-5/+45
| | | | | | | | Change-Id: If6b499d819b71298b8a64e096e1eb83c639ad645 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/517 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Complete virtual memory write path during shutdown sequenceMatthew Barth2011-12-081-1/+2
| | | | | | | Change-Id: I93a6305b88539d8cf1b41cfc4cde713fd7c19494 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/522 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* remove mmioMap and mmioUnmap deprecated functions.Missy Connell2011-11-291-10/+0
| | | | | | | | Change-Id: I9d9094d5c6689c9127c6948239c7c9aaebacdfde Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/514 Tested-by: Jenkins Server Reviewed-by: MATTHEW S. BARTH <msbarth@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* collectTrace to allow partial trace buffer collectionMonte Copeland2011-11-213-1/+67
| | | | | | | Change-Id: I06ce6df416f38c4619281180ea8515c90f8f2fab Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/498 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Import ecmdDataBufferBase into HostBootMike Jones2011-11-101-0/+36
| | | | | | | | Change-Id: I518319bcc06c4f89ee8000762f0e34e9e2af92c3 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/492 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com>
* Add strchr function.Patrick Williams2011-11-021-0/+11
| | | | | | | | Change-Id: Ia9eeb1c4c6cb47409fbfdb0f267eb9943a83dad4 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/480 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
* Initial Deconfigure and GARD supportMike Jones2011-11-011-1/+1
| | | | | | | Change-Id: I8448480627ad478e8e16377027137e6df410053f Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/460 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
* Change string interfaceis' parametersThi Tran2011-10-311-2/+2
| | | | | | | | Change-Id: I9cbd33e1fa53649538de866ce63cee2bafa97230 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/469 Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* new HEAP manager to reduce fragmentationDoug Gilbert2011-10-251-44/+36
| | | | | | | | Change-Id: Ibe725a43e6366d9113ec99df1cc6aafa7bbb770e Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/431 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
* Support task_wait / task_wait_tid syscalls:Patrick Williams2011-10-242-15/+75
| | | | | | | | | | | | | | | | | | | | | | | | | - Add task_end2 syscall to allow pthread_exit-like retval. - Add/maintain task states. - Create task parent/child tracking tree. - Add task_detach function. - Implement wait syscalls. Make task_exec caller the parent of spawned task: Previously the task_exec call caused a message to the VFS task, which called task_create and returned the tid in response to the message. This causes the parent of the spawned task to appear to be the VFS task. Modify task_exec / VFS handling to instead return the entry point address on the message and have task_exec call task_create directly itself. Change-Id: I6b6796f45875de37b1ab01e7596639b073820b95 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/443 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
* Change mm_set_permission interface.Patrick Williams2011-09-211-4/+4
| | | | | | | | | | Allow multiple settings to be OR'd together. Change-Id: I5f565c73919f20eceeb255531c6fe1c14e72182b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/349 Tested-by: Jenkins Server Reviewed-by: Melissa J. Connell <missyc@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Adding new interface to update page permissions.. Interface only.Missy Connell2011-09-151-0/+10
| | | | | | | | | | | | Added changes from review comments Updated new enum for system call Change-Id: I8a55b5e2f67427e59263eae31913e438ca782006 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/331 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Melissa J. Connell <missyc@us.ibm.com>
* Remove page by given TYPE system callMatthew Barth2011-09-141-1/+8
| | | | | | | Change-Id: Iffdd97a75944abbd52dbc72d3aa1394b771fd371 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/333 Tested-by: Jenkins Server Reviewed-by: MATTHEW S. BARTH <msbarth@us.ibm.com>
* Return code cleanups.Patrick Williams2011-09-131-2/+12
| | | | | | | Change-Id: I375c2f895f28b73948aa384dda781b31f027719b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/334 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Floating point support.Patrick Williams2011-09-122-1/+32
| | | | | | | Change-Id: I859cac1c01bf631d12223702d68813b45339b65f Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/295 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Move libs to the extended imageDoug Gilbert2011-09-071-0/+2
| | | | | | | | Change-Id: I275a3a4b897e6426164e4f3bd642f92b0d3fed07 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/285 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
* Ensure scratch operations happen on master core.Patrick Williams2011-08-312-8/+12
| | | | | | | | Change-Id: I970d645108de041d410599847edce877cb794015 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/275 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add copyright headers to all source files.Patrick Williams2011-08-2414-28/+303
| | | | | | | Change-Id: I205f2409e56032cfc0aaf01d7e26d357f0b86373 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/277 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Add initial scratch (sprc/sprd) support.Patrick Williams2011-08-222-1/+43
| | | | | | | Change-Id: Ica416251241a2881459b2eb1ae0ad3c746de1200 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/267 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Virtual File System module load and unloaddgilbert2011-08-171-0/+32
| | | | | | | | Change-Id: Iaa6a256a8a15ac48bfba5bc1cab292c5ac246166 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/253 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Allocate block system call stubMatthew Barth2011-08-102-1/+13
| | | | | | | Change-Id: Ief3476b5306bc231c9d3044b2736fcd195e840b1 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/243 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Clean up mutex issues.Patrick Williams2011-08-091-39/+20
| | | | | | | | | | | | | - Final fix for mutex bug. - Document weak-consistency decisions in mutex code. - Prevent aggressive optimizations around lwsync/isync instrs. - Fix minor bug in futex_wait system call. - Optimize futex path with likely/unlikely hints. Change-Id: I26b54dee7e45bcb42195f730474b350b44f53cfc Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/233 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Device segment MMIO map & unmap system callsMatthew Barth2011-08-081-0/+10
| | | | | | | Change-Id: I233c2677909c0c16536133c189ebbd21e4415e22 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/208 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Hang condition on mutex, try different futex lock codeDoug Gilbert2011-08-031-2/+7
| | | | | | | | Change-Id: I5c9e1e54234a9214a70bec0ef87a53da86100195 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/226 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
* Add userspace syscalls for PVR.Patrick Williams2011-07-291-0/+11
| | | | | | | | Change-Id: I27d51e0e9f2396a4ddd45d98d6b1004a17c9db46 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/219 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: MATTHEW S. BARTH <msbarth@us.ibm.com>
* Cleanup from previous reviews, add barrier for CxxTestMark Wenning2011-07-253-12/+73
| | | | | | | | | | | | | | | | | - add IStep1 for demo - cleanup: remove inheritance, add errlog tags, etc. - inadvertently ran copyright script, this is OK. - more cleanup: indentation, etc. - add barrier for CxxTests - rename cxxtest_stub.C to cxxtest_data.C - merge problems on gerrit - fix review comments Change-Id: Iee988b8595d8c6dd521fd94d4d58cb403898d948 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/207 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* VMM Improvements.Patrick Williams2011-07-201-3/+4
| | | | | | | | | | | - Segment Manager - Base / Device Segments - Block for Base image. Change-Id: Ic0c058e5c5b210ec1c48d30f6ed9f9837d74a3c8 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/193 Tested-by: Jenkins Server Reviewed-by: MATTHEW S. BARTH <msbarth@us.ibm.com>
* Shutdown and post status on HostBoot completionMike Jones2011-07-193-1/+23
| | | | | | | | Change-Id: If2ab46af85065b29695a1186ed331fd835944eb4 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/204 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* fix mutex_unlock weak consitency bugdgilbert2011-07-151-0/+2
| | | | | | | Change-Id: Id73831f647cd07f6a12848dac9e45b2dc6c67f62 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/201 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* syscall cleanup/scrubMonte Copeland2011-07-143-6/+6
| | | | | | | | | | | - 2nd pass - 3rd pass Change-Id: I5eb314c0c635aa42bc4d841065d9a9a786f8be4b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/198 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
* Improve assert handling and options.Patrick Williams2011-07-063-7/+50
| | | | | | | | | | | | | - Allow a custom assert trace as an optional parameter. - Call a trace function instead of printk for most cases. - Provide a critical library assert (for syslibs, trace, etc.) - Provide a kassert function for kernel code. Change-Id: If24d57d0832a587258503b3fd0046c21da3712b5 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/159 Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: CAMVAN T. NGUYEN <ctnguyen@us.ibm.com>
* Remove heap allocation of xscom mutex.Patrick Williams2011-06-242-33/+4
| | | | | | | | | | | | | | Since mutexes are simply a uint64 with a static initializer, the xscom mutex is now a instance variable directly in the cpu object. Remove unneeded mutex_create function and changed the behavior of mutex_destroy. Change-Id: If6e1d1bf0083c32ef9e7502d27678811bdaf7e1e Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/150 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com>
* Create testcore directory for kernel-level tests.Patrick Williams2011-06-173-101/+0
| | | | | | | Change-Id: I4b6235edec59c0a97f53af431752d2f4dfabcfa9 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/151 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Initial futex supportdgilbert2011-06-176-37/+265
| | | | | | | | | Change-Id: I51a4f1117085ce23c7993c1a38e4124596636726 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/141 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix page rounding issue in malloc.Patrick Williams2011-06-091-1/+2
| | | | | | | Change-Id: I22c7d2b7c4d9d77b235efd6a3e0ff9280ac8a854 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/143 Tested-by: Jenkins Server Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
* Create per-CPU mutex for XSCOM usage.Patrick Williams2011-06-081-0/+35
| | | | | | | | Change-Id: I76ad5c1d553d544b52910afd82e2716781ea13b9 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/140 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
* Add HMER access syscalls (as fastpath).Patrick Williams2011-06-022-4/+10
| | | | | | | | Change-Id: Icc7494986d19950a18cc9ee53fd5125c86096a72 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/105 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
* Device Framework support.Patrick Williams2011-06-021-1/+1
| | | | | | | | Change-Id: I133f58df309c7fc3a7faa261699eba66a6bae4be Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/98 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
* Userspace interfaces for processor affinity.Patrick Williams2011-05-261-2/+22
| | | | | | | | Change-Id: Id053edc0aa9be2e6e820ea7bf0d81bf5c38d4f54 Reviewed-on: http://gfwr801.rchland.ibm.com:8080/gerrit/101 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
* Improve assert debugability.Patrick Williams2011-05-251-1/+3
| | | | | | | | Change-Id: Iec3709694ea02ce2c162d310949ad8586da0b539 Reviewed-on: http://gfwr801.rchland.ibm.com:8080/gerrit/96 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: MATTHEW S. BARTH <msbarth@us.ibm.com>
* Simple realloc implementation.Patrick Williams2011-05-201-0/+28
| | | | | | | Change-Id: I76c162bbb3efb97d91d498d4571c1d81d15e5663 Reviewed-on: http://gfwr801.rchland.ibm.com:8080/gerrit/93 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Read task_create function pointer from user space for memory protection ↵Patrick Williams2011-03-281-0/+5
| | | | validation.
* Fix sprintf to null terminate the string.Dave Larson2011-03-071-1/+1
|
* Merge of PowerHAL project up to commit:Patrick Williams2011-03-055-46/+197
| | | | dd45c30bd53d8e6c123165b83842d08117558a3c
* Makefile cleanups.Patrick Williams2011-01-101-7/+0
|
* Importing trace header files from FSP trace and integrating into build.Patrick Williams2011-01-101-1/+1
|
OpenPOWER on IntegriCloud