Source-Changes archive

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

CVS commit: src/sys



Module Name:    src
Committed By:   maxv
Date:           Wed Oct 31 06:26:26 UTC 2018

Modified Files:
        src/sys/arch/amd64/amd64: machdep.c
        src/sys/arch/amd64/conf: Makefile.amd64 files.amd64
        src/sys/arch/amd64/include: Makefile
        src/sys/arch/x86/x86: pmap.c
        src/sys/kern: files.kern
        src/sys/sys: asan.h
Added Files:
        src/sys/arch/amd64/include: asan.h
        src/sys/kern: subr_asan.c
Removed Files:
        src/sys/arch/amd64/amd64: asan.c

Log Message:
Move the MI parts of KASAN into kern/subr_asan.c. This file includes
machine/asan.h, which contains the MD functions. We use an include rather
than a plain C file, because we want GCC to optimize/inline some functions
into one single block.

The amd64 MD parts of KASAN are moved accordingly.

The naming convention we use is:

        kasan_*
                a generic kasan object, declared in subr_asan.c
        kasan_md_*
                an MD kasan object, declared in machine/asan.h, and used
                in subr_asan.c
        __md_*
                an MD object, declared in machine/asan.h, and not used
                outside

Overall this makes it easier to add KASAN support on more architectures.

Discussed with several people.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r0 src/sys/arch/amd64/amd64/asan.c
cvs rdiff -u -r1.319 -r1.320 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.74 -r1.75 src/sys/arch/amd64/conf/Makefile.amd64
cvs rdiff -u -r1.106 -r1.107 src/sys/arch/amd64/conf/files.amd64
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/amd64/include/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/arch/amd64/include/asan.h
cvs rdiff -u -r1.308 -r1.309 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.23 -r1.24 src/sys/kern/files.kern
cvs rdiff -u -r0 -r1.1 src/sys/kern/subr_asan.c
cvs rdiff -u -r1.7 -r1.8 src/sys/sys/asan.h

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