base: Rewrite the CircleBuf to fix bugs and add serialization
authorAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 7 Aug 2015 08:59:19 +0000 (09:59 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 7 Aug 2015 08:59:19 +0000 (09:59 +0100)
commit9b2426ecfc4f004fe77badb4cc64f93af3a2d0d3
tree1371894c4c8b50a4bffdea877a9cbe15225df821
parent39d8034475f09187bee91f90391db26bde287506
base: Rewrite the CircleBuf to fix bugs and add serialization

The CircleBuf class has at least one bug causing it to overwrite the
wrong elements when wrapping. The current code has a lot of unused
functionality and duplicated code. This changeset replaces the old
implementation with a new version that supports serialization and
arbitrary types in the buffer (not just char).
src/base/SConscript
src/base/circlebuf.cc [deleted file]
src/base/circlebuf.hh
src/dev/terminal.cc
src/dev/terminal.hh
src/unittest/SConscript
src/unittest/circlebuf.cc [new file with mode: 0644]
src/unittest/circletest.cc [deleted file]