Debug multiboot, enable apic and ACPI table parsing
This commit is contained in:
parent
657372f1be
commit
7db6db5ae6
17 changed files with 226 additions and 19 deletions
|
@ -92,12 +92,12 @@ void print(char *s){
|
|||
}
|
||||
|
||||
void printi(int i) {
|
||||
char str[12];
|
||||
char str[50];
|
||||
itoa(i, str);
|
||||
print(str);
|
||||
}
|
||||
|
||||
void printh(int h) {
|
||||
void printh(u64 h) {
|
||||
char str[17];
|
||||
itoh(h, str);
|
||||
u8 i=0;
|
||||
|
|
|
@ -23,5 +23,5 @@ void printi(int i);
|
|||
/**
|
||||
* Print an integer as hex using itoh()
|
||||
*/
|
||||
void printh(int h);
|
||||
void printh(u64 h);
|
||||
|
||||
|
|
|
@ -26,9 +26,11 @@ void itoa(u64 i, char *a){
|
|||
|
||||
// Count number of digits
|
||||
u32 len=1;
|
||||
while(i/pow(10,len)>=1)
|
||||
u64 pow_value=i/pow(10,len);
|
||||
while(pow_value>=1)
|
||||
{
|
||||
len++;
|
||||
pow_value=i/pow(10,len);
|
||||
}
|
||||
|
||||
// Build string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue