Skip to content

Conversation

@0Nera
Copy link
Contributor

@0Nera 0Nera commented Jan 18, 2025

  • Clearing the bss section results in an error

@0Nera 0Nera added bug Something isn't working enhancement New feature or request labels Jan 18, 2025
//memset(&kernel_section_bss_start, 0,
// (uint64_t)&kernel_section_bss_end -
// (uint64_t)&kernel_section_bss_start);
serial_printf("\t.text 0x%x-0x%x(%u)\n", &kernel_section_text_start,

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'unsigned long *'.
// (uint64_t)&kernel_section_bss_end -
// (uint64_t)&kernel_section_bss_start);
serial_printf("\t.text 0x%x-0x%x(%u)\n", &kernel_section_text_start,
&kernel_section_text_end,

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'unsigned long *'.
// (uint64_t)&kernel_section_bss_start);
serial_printf("\t.text 0x%x-0x%x(%u)\n", &kernel_section_text_start,
&kernel_section_text_end,
&kernel_section_text_end - &kernel_section_text_start);

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'long'.
kernel_sections[0] =
(sections_t){ kernel_section_text_start, kernel_section_text_end };

serial_printf("\t.rodata 0x%x-0x%x(%u)\n", &kernel_section_rodata_start,

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'unsigned long *'.
(sections_t){ kernel_section_text_start, kernel_section_text_end };

serial_printf("\t.rodata 0x%x-0x%x(%u)\n", &kernel_section_rodata_start,
&kernel_section_rodata_end,

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'unsigned long *'.
(sections_t){ kernel_section_rodata_start, kernel_section_rodata_end };

serial_printf("\t.data 0x%x-0x%x(%u)\n", &kernel_section_data_start,
&kernel_section_data_end,

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'unsigned long *'.

serial_printf("\t.data 0x%x-0x%x(%u)\n", &kernel_section_data_start,
&kernel_section_data_end,
&kernel_section_data_end - &kernel_section_data_start);

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'long'.
kernel_sections[2] =
(sections_t){ kernel_section_data_start, kernel_section_data_end };

serial_printf("\t.bss 0x%x-0x%x(%u)\n", &kernel_section_bss_start,

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'unsigned long *'.
(sections_t){ kernel_section_data_start, kernel_section_data_end };

serial_printf("\t.bss 0x%x-0x%x(%u)\n", &kernel_section_bss_start,
&kernel_section_bss_end,

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'unsigned long *'.

serial_printf("\t.bss 0x%x-0x%x(%u)\n", &kernel_section_bss_start,
&kernel_section_bss_end,
&kernel_section_bss_end - &kernel_section_bss_start);

Check failure

Code scanning / CodeQL

Wrong type of arguments to formatting function High

This format specifier for type 'unsigned int' does not match the argument type 'long'.
@0Nera 0Nera merged commit 11db1c3 into CIS-osdev:master Jan 18, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant