Skip to content

Commit 24958f3

Browse files
Andrew Boieandrewboie
authored andcommitted
x86: move z_x86_early_serial_init()
This works with long mode as well, uplevel to common kernel_arch_func.h. Signed-off-by: Andrew Boie <[email protected]>
1 parent 3b9bcbb commit 24958f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

arch/x86/include/ia32/kernel_arch_func.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ extern "C" {
2323
#define STACK_ROUND_UP(x) ROUND_UP(x, STACK_ALIGN_SIZE)
2424
#define STACK_ROUND_DOWN(x) ROUND_DOWN(x, STACK_ALIGN_SIZE)
2525

26-
#ifdef CONFIG_X86_VERY_EARLY_CONSOLE
27-
/* Setup ultra-minimal serial driver for printk() */
28-
void z_x86_early_serial_init(void);
29-
#endif
30-
3126
/* Create all page tables with boot configuration and enable paging */
3227
void z_x86_paging_init(void);
3328

arch/x86/include/kernel_arch_func.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ struct multiboot_info;
3131

3232
extern FUNC_NORETURN void z_x86_prep_c(int dummy, struct multiboot_info *info);
3333

34+
#ifdef CONFIG_X86_VERY_EARLY_CONSOLE
35+
/* Setup ultra-minimal serial driver for printk() */
36+
void z_x86_early_serial_init(void);
37+
#endif /* CONFIG_X86_VERY_EARLY_CONSOLE */
38+
3439
#endif
3540

3641
#endif /* ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_ */

0 commit comments

Comments
 (0)