ladybird/Kernel/Arch
Daniel Bertalan 779cf49f38 Kernel: Fix Clang not initializing s_bsp_processor correctly
Initializing the variable this way fixes a kernel panic in Clang where
the object was zero-initialized, so the `m_in_scheduler` contained the
wrong value. GCC got it right, but we're better off making this change,
as leaving uninitialized fields in constant-initialized objects can
cause other weird situations like this. Also, initializing only a single
field to a non-zero value isn't worth the cost of no longer fitting in
`.bss`.

Another two variables suffer from the same problem, even though their
values are supposed to be zero. Removing these causes the
`_GLOBAL_sub_I_` function to no longer be generated and the (not
handled) `.init_array` section to be omitted.
2021-08-30 13:20:34 +02:00
..
aarch64 Kernel: Omit all actual code from the kernel on aarch64 for now 2021-08-28 21:51:30 +01:00
PC Kernel: Make all ProcFS and SysFS files zero-sized 2021-08-29 01:09:19 +02:00
x86 Kernel: Fix Clang not initializing s_bsp_processor correctly 2021-08-30 13:20:34 +02:00