]> xenbits.xensource.com Git - mini-os.git/commit
Mini-OS: add some macros for asm statements
authorJuergen Gross <jgross@suse.com>
Mon, 22 Jul 2024 10:46:43 +0000 (12:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jul 2024 10:46:43 +0000 (12:46 +0200)
commit618e99105e7433913ca00a3da5373915d7e1343c
treeb99a7dee86314b6660a8b246ea9126c3deeebf6b
parent8b038c7411ae7e823eaf6d15d5efbe037a07197a
Mini-OS: add some macros for asm statements

Instead of having #ifdefs sprinkled around in x86 code, add some
macros defining constants for asm statements to address differences
between 32- and 64-bit mode.

Modify existing code to use those macros.

While at it convert the assembler parts of run_idle_thread() to a more
sane variant.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
arch/x86/sched.c
include/x86/os.h