serialice: add check cpuinfo

Change-Id: If52d9e923ebca6f49b6124a01dc4323e96b97114
This commit is contained in:
Alexander Couzens 2017-10-29 07:18:36 +01:00
parent 40983ccaec
commit d1a76e3920
1 changed files with 5 additions and 0 deletions

View File

@ -374,6 +374,11 @@ static void serialice_cpuinfo(char *buffer, int len)
u32 eax, ecx;
u32 reg32;
if (len < 20) {
sio_putstring("cpuinfo to small");
return;
}
// Format:
// --EAX--- --ECX---
// *ci00000000.00000000