Vinitha Kampasati
Vinitha Kampasati

Reputation: 1

error: invalid 'asm': operand number missing after %-letters

#define enable_rdpmc() ({
unsigned long cr4;
asm volatile(
"push %rax\n\t"
"mov %%cr4, %0\n\t"
"or $(0x100), %0\n\t"
"mov %0, %%cr4\n\t"
"pop %rax"
: "=r" (cr4)
:
: "memory"); })

Iam trying to build this but it is pushing errors and iam debugging it is throwing signal illegal termination

Upvotes: 0

Views: 49

Answers (0)

Related Questions