bootm: Move cleanup_before_linux() to bootm.h

Move the declaration of this function to a common header. Make sure it
is included by files which define it.

Fix up a few whitespace problems while here.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-07-12 14:01:24 +02:00
parent 0cde568159
commit 7482087639
26 changed files with 29 additions and 15 deletions

View File

@@ -76,7 +76,6 @@ void setup_gdt(struct global_data *id, u64 *gdt_addr);
*/
void setup_fsp_gdt(void);
int init_cache(void);
int cleanup_before_linux(void);
/* cpu/.../timer.c */
void timer_isr(void *);
@@ -89,7 +88,6 @@ int i8254_init(void);
/* cpu/.../interrupts.c */
int cpu_init_interrupts(void);
int cleanup_before_linux(void);
int x86_cleanup_before_linux(void);
void x86_enable_caches(void);
void x86_disable_caches(void);