sti and cli commands stop working when booting from GRUB

General questions related to the company.

Moderator: Moderators

sti and cli commands stop working when booting from GRUB

Postby ali.aminian » Wed Jan 10, 2018 1:01 pm

Hello
I load the series kernel with the grub boot loader. But it seems when I load the kernel with the grub sti and cli commands stop from working I also tried to manually disable IF in EFLAG register by


asm("pushl $0;popf;");


and viewing it by


int i;
asm("pushf; popl %ebx;");
asm("movl %%ebx,%0" : "=r"(i));
DebugPrintf("\neflags = %b\n",i);




but no matter what, bit number 9 (10th bit) in EFLAG will always remain 1.

But when I load the kernel with official series loader these commands work as expected.
so I wonder what is going on?
ali.aminian
 
Posts: 1
Joined: Sun Nov 22, 2015 2:10 pm

Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron