x86/asm: Replace magic numbers in GDT descriptors, script-generated change
authorVegard Nossum <vegard.nossum@oracle.com>
Tue, 19 Dec 2023 15:11:58 +0000 (16:11 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 20 Dec 2023 09:57:38 +0000 (10:57 +0100)
commit1445f6e15f7ddd80311307475191e34c0b2312e8
treea1d4f1471994e6b8547dc197e8ae088987df332e
parent41ef75c848e33beb1f7b981866b62b0066f744c7
x86/asm: Replace magic numbers in GDT descriptors, script-generated change

Actually replace the numeric values by the new symbolic values.

I used this to find all the existing users of the GDT_ENTRY*() macros:

  $ git grep -P 'GDT_ENTRY(_INIT)?\('

Some of the lines will exceed 80 characters, but some of them will be
shorter again in the next couple of patches.

Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20231219151200.2878271-4-vegard.nossum@oracle.com
arch/x86/boot/pm.c
arch/x86/kernel/apm_32.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/head64.c
arch/x86/kernel/setup_percpu.c
arch/x86/platform/pvh/head.S
arch/x86/realmode/rm/reboot.S
drivers/firmware/efi/libstub/x86-5lvl.c
drivers/pnp/pnpbios/bioscalls.c