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:           Fri Dec 16 19:52:22 UTC 2016

Modified Files:
        src/sys/arch/amd64/amd64: locore.S
        src/sys/arch/i386/i386: locore.S machdep.c
        src/sys/arch/x86/x86: pmap.c
        src/sys/arch/xen/x86: x86_xpmap.c

Log Message:
The way the xen dummy page is taken care of makes absolutely no sense at
all, with magic offsets here and there in different layers of the system.
It is just blind luck that everything has always worked as expected so

Due to this wrong design we have a problem now: we allocate one physical
page for lapic, and it happens to overlap with the dummy page, which
causes the system to crash.

Fix this by keeping the dummy va directly in a variable instead of magic
offsets. The asm locore now increments the first pa to hide the dummy page
to machdep and pmap.

To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/sys/arch/amd64/amd64/locore.S
cvs rdiff -u -r1.142 -r1.143 src/sys/arch/i386/i386/locore.S
cvs rdiff -u -r1.767 -r1.768 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.231 -r1.232 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/xen/x86/x86_xpmap.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