mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-14 15:23:26 +08:00
557767f802
It is useful to obtain the results of cpuid queries, so add a command for this. Signed-off-by: Simon Glass <sjg@chromium.org>
23 lines
490 B
C
23 lines
490 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Tests for cpuid command
|
|
*
|
|
* Copyright 2024 Google LLC
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
*/
|
|
|
|
#include <test/cmd.h>
|
|
#include <test/ut.h>
|
|
|
|
static int cmd_test_cpuid(struct unit_test_state *uts)
|
|
{
|
|
ut_assertok(run_commandf("cpuid 1"));
|
|
ut_assert_nextline("eax 00060fb1");
|
|
ut_assert_nextline("ebx 00000800");
|
|
ut_assert_nextline("ecx 80002001");
|
|
ut_assert_nextline("edx 078bfbfd");
|
|
|
|
return 0;
|
|
}
|
|
CMD_TEST(cmd_test_cpuid, UTF_CONSOLE);
|