Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch



Module Name:    src
Committed By:   maxv
Date:           Wed Aug  7 06:23:48 UTC 2019

Modified Files:
        src/sys/arch/amd64/include: pmap.h
        src/sys/arch/x86/include: cpu.h pmap.h
        src/sys/arch/x86/x86: pmap.c svs.c

Log Message:
Add support for USER_LDT in SVS. This allows us to have both enabled at
the same time.

We allocate an LDT for each CPU in the GDT and map an area for it, in
addition to the default LDT already present. In context switches between
different processes, we choose between the default or the per-cpu LDT
selector: if the user set specific LDT entries, we memcpy them to the
per-cpu LDT and load the per-cpu selector.

Tested by Naveen Narayanan (with Wine on amd64).


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.107 -r1.108 src/sys/arch/x86/include/cpu.h
cvs rdiff -u -r1.101 -r1.102 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.334 -r1.335 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/x86/x86/svs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index