mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Minor changes
This commit is contained in:
+2
-2
@@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
__attribute__ ((section ("entry")))
|
__attribute__ ((section ("entry")))
|
||||||
void main() {
|
void main() {
|
||||||
uint32_t wait = 0xffffffff;
|
uint32_t wait = 0x1fffffff;
|
||||||
|
|
||||||
putc('a');
|
print("kern.\n\n");
|
||||||
|
|
||||||
while (wait--);
|
while (wait--);
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ uint32_t memmapAddr = 0x30000;
|
|||||||
void printFiletable(char* ft);
|
void printFiletable(char* ft);
|
||||||
void printPhysicalMemmap();
|
void printPhysicalMemmap();
|
||||||
|
|
||||||
__attribute__ ((section ("entry"))) // Make sure that main() is at the start of kernel.bin
|
|
||||||
void main() {
|
void main() {
|
||||||
// Interrupts
|
// Interrupts
|
||||||
setupIdt();
|
setupIdt();
|
||||||
@@ -50,7 +49,6 @@ void main() {
|
|||||||
// Screen setup
|
// Screen setup
|
||||||
// TODO: Find font in filetable
|
// TODO: Find font in filetable
|
||||||
diskRead(36, 4, (char*)0x6000); // Read font from disk
|
diskRead(36, 4, (char*)0x6000); // Read font from disk
|
||||||
// loadFont((char*)0x6000);
|
|
||||||
|
|
||||||
clear();
|
clear();
|
||||||
print("kern.\n\n");
|
print("kern.\n\n");
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
SECTIONS {
|
SECTIONS {
|
||||||
.text 0x1000 : {
|
.text 0x1000 : {
|
||||||
*(entry);
|
|
||||||
*(.text*);
|
*(.text*);
|
||||||
}
|
}
|
||||||
.data : {
|
.data : {
|
||||||
|
|||||||
Reference in New Issue
Block a user