fix(x86_64): don't set `CR0Flags::TASK_SWITCHED`
As previously mentioned, the manual setting of this flag seems to be unnecessary, so I propose to remove it from the code.
We should accept the PR. I have the same opinion like @sarahspberrypi
@sarahspberrypi I talked to @mkroening We would like to set TASK_SWITCHED flag. Do you really need to remove the flag?
@sarahspberrypi I talked to @mkroening We would like to set TASK_SWITCHED flag. Do you really need to remove the flag?
@stlankes The flag is set later during switch_to_task() call anyways (see here ), so I don't really see why we need to have it pre-enabled?
With SEV enabled, this apparently triggers an immediate hardware interrupt that cannot be masked. This interrupt can only be handled by hermit later when the IDT is loaded. But I'll talk with @mkroening in the new year about this.
This is not relevant anymore.