__asm__ volatile("pushq $0x08\n leaq 1f(%%rip), %%rax \n pushq %%rax\n lretq\n 1:\n mov $0x10, %%ax\n mov %%ax, %%ds\n mov %%ax, %%es\n mov %%ax, %%fs\n mov %%ax, %%gs\n mov %%ax, %%ss\n" :::"rax", "ax");
This is the most cursed line of code i have ever done
2 months ago