Code Cleanup
This commit is contained in:
parent
d84ceb592d
commit
b116eb040a
|
@ -1,6 +1,5 @@
|
|||
#include "io.h"
|
||||
#include "print.h"
|
||||
#include "hal.h"
|
||||
|
||||
void hal_interrupt_handler_dummy(void)
|
||||
{
|
||||
|
|
|
@ -97,7 +97,7 @@ void NATIVE64 _hal_print_hex(uint64_t number, uint64_t capital)
|
|||
{
|
||||
char const lookup_table_cap[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
|
||||
char const lookup_table[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
||||
char const * const look_up = capital == 1 ? lookup_table_cap : lookup_table;
|
||||
char const * const look_up = capital == 1 ? &lookup_table_cap[0] : &lookup_table[0];
|
||||
char arr[17];
|
||||
arr[16] = 0; //zero-terminated
|
||||
uint32_t index = 15;
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#include <stdint.h>
|
||||
#include "var.h"
|
||||
#include "mem.h"
|
||||
#include "../common/util/list/linked_list/linked_list.h"
|
||||
|
||||
uint8_t g_gdt[8*9];
|
||||
uint8_t g_idt[21*16];
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include "../hal/hal.h"
|
||||
#include "../hal/print.h"
|
||||
#include "../hal/io.h"
|
||||
#include "../common/sys/sys_info.h"
|
||||
|
||||
extern char kernel_start[];
|
||||
extern char kernel_end[];
|
||||
|
|
|
@ -132,7 +132,7 @@ void NATIVE32 _print_hex(uint32_t number, uint32_t captial)
|
|||
{
|
||||
char const lookup_table_cap[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
|
||||
char const lookup_table[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
||||
char const * const look_up = captial == 1 ? lookup_table_cap : lookup_table;
|
||||
char const * const look_up = captial == 1 ? &lookup_table_cap[0] : &lookup_table[0];
|
||||
char arr[9];
|
||||
arr[8] = 0; //zero-terminated
|
||||
uint32_t index = 7;
|
||||
|
|
Loading…
Reference in New Issue