[kernel][pc] Finish C++ conversion Change-Id: Iea6ff5e497597c1b0cd3a914e1a3cdd5b641cf58
[magenta] Initial commit