git: pc64: Move 4 file-scope static variables into create_pagetables()

Aaron LI aly at crater.dragonflybsd.org
Tue Mar 31 04:56:45 PDT 2026


commit 2555c0eac9d9ed05a025e584dfd2c42f6a443910
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Mar 31 19:50:29 2026 +0800

    pc64: Move 4 file-scope static variables into create_pagetables()
    
    The KPTbase/KPTphys/KPDbase/KPDphys file-scope static variables are now
    only used by create_pagetables(), so just move them into the function.
    
    After this change, the BSS size of the compiled object becomes the same
    for GCC 8.3 and GCC 12.5.  Otherwise, GCC 12.5 would always place these
    4 static variables in BSS, resulting in 32 bytes bigger BSS than the
    object compiled by GCC 8.3.
    
    While there, auto trim the trailing whitespaces.

Summary of changes:
 sys/platform/pc64/x86_64/pmap.c | 54 ++++++++++++++++++++---------------------
 1 file changed, 27 insertions(+), 27 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2555c0eac9d9ed05a025e584dfd2c42f6a443910


-- 
DragonFly BSD source repository


More information about the Commits mailing list