mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
context: fix copy of fs and gs
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user