context: fix copy of fs and gs

This commit is contained in:
Matheus
2026-04-28 21:15:21 -03:00
parent 37c3d7f98b
commit 02a47c8303
+2 -2
View File
@@ -141,7 +141,7 @@ void arch_extracontext_copy(extracontext_t *dst, const extracontext_t *src) {
// XXX is this behavior correct? ucontext doesnt seem to save it on linux and so it will not be saved // XXX is this behavior correct? ucontext doesnt seem to save it on linux and so it will not be saved
dst->gsbase = src->gsbase; dst->gsbase = src->gsbase;
dst->fsbase = src->fsbase; dst->fsbase = src->fsbase;
dst->fs = dst->fs; dst->fs = src->fs;
dst->gs = dst->gs; dst->gs = src->gs;
memcpy(dst->xsave, src->xsave, arch_xsave_size); memcpy(dst->xsave, src->xsave, arch_xsave_size);
} }