* exec_setregs may initialize some registers differently than Linux * does, thus potentially confusing Linux binaries. If necessary, we * override the exec_setregs default(s) here. */
| 805 | * override the exec_setregs default(s) here. |
| 806 | */ |
| 807 | static void |
| 808 | linux_exec_setregs(struct thread *td, struct image_params *imgp, |
| 809 | uintptr_t stack) |
| 810 | { |
| 811 | struct pcb *pcb = td->td_pcb; |
| 812 | |
| 813 | exec_setregs(td, imgp, stack); |
| 814 | |
| 815 | /* Linux sets %gs to 0, we default to _udatasel. */ |
| 816 | pcb->pcb_gs = 0; |
| 817 | load_gs(0); |
| 818 | |
| 819 | pcb->pcb_initial_npxcw = __LINUX_NPXCW__; |
| 820 | } |
| 821 | |
| 822 | static void |
| 823 | linux_get_machine(const char **dst) |
nothing calls this directly
no test coverage detected