• Eric W. Biederman's avatar
    x86: fix x86-32 early fixmap initialization. · 17d57a92
    Eric W. Biederman authored
    pageexec@freemail.hu writes:
    
    > i've just noticed that the chunk in i386/kernel/head.S ended up in a
    > weird place, namely, it's not going to be executed as it's just after
    > a 'jmp 3f' and before startup_32_smp, probably not what you intended.
    > on a sidenote, the whole thing can be done in a single insn, like:
    >
    > movl $(swapper_pg_pmd - __PAGE_OFFSET + 0x067), (swapper_pg_dir -
    > __PAGE_OFFSET+ 4092)
    
    Thanks for the reminder I thought we had fixed this problem a while ago.
    
    Needed to get fixed virtual address for USB debug and earlycon with mmio.
    Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    17d57a92
head_32.S 15.1 KB