*: generalize "const trick"
While at it, change all "__asm__" to "asm" Co-authored-by: canyie <31466456+canyie@users.noreply.github.com> Signed-off-by: YU Jincheng <shana@zju.edu.cn> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
17e6fb06b3
commit
1f925038ab
@@ -505,7 +505,7 @@ static void cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx,
|
||||
unsigned int *edx)
|
||||
{
|
||||
/* EAX value specifies what information to return */
|
||||
__asm__(
|
||||
asm (
|
||||
" pushl %%ebx\n" /* Save EBX */
|
||||
" cpuid\n"
|
||||
" movl %%ebx, %1\n" /* Save content of EBX */
|
||||
|
Reference in New Issue
Block a user