BIG refactor (indentation)
This commit is contained in:
parent
96d45988be
commit
d85ee2dee1
40 changed files with 2097 additions and 2100 deletions
|
@ -83,7 +83,7 @@ namespace MTGosHAL {
|
|||
disk.readSector(disk.getDriveNumByName("ATA0m"),0,buf);
|
||||
out << (char*)buf;
|
||||
out << "こんにちは、ユニコード。\nЗдравствуй, Юникод.\nΓεια σου, Γιούνικοντ.\n안녕하세요, 유니코드.\n"_s;
|
||||
//sti();
|
||||
sti();
|
||||
for(;;);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace MTGosHAL {
|
|||
return inb(port+SERIAL_LSR)&0x20;
|
||||
}
|
||||
auto Serial::putChar(char chr) -> void {
|
||||
// if(!works)
|
||||
if(!works)
|
||||
return;
|
||||
int tries=65535;
|
||||
while(!isTransmitEmpty()) {
|
||||
|
|
|
@ -28,13 +28,11 @@ namespace MTGosHAL {
|
|||
ebx=mb;
|
||||
new (&debug) Serial();
|
||||
debug << "Hello debugger! This is MTGos v00r01\nThese logs are probably very long, so please redirect the output to a file.\n";
|
||||
|
||||
debug << "Init Screen output\n";
|
||||
new (&out) Screen(ebx);
|
||||
new (&err) Screen(ebx);
|
||||
out << BG_color::BLACK << FG_color::WHITE << "Loading MTGos...\n";
|
||||
err << BG_color::BLACK << FG_color::RED;
|
||||
|
||||
debug << "Init GDT\n";
|
||||
new (&gdt) GDT();
|
||||
gdt.setEntry(0, 0, 0, 0);
|
||||
|
|
|
@ -5,7 +5,6 @@ namespace MTGosHAL {
|
|||
Task::Task(struct cpu_state* cpu): cpu_state(cpu), next(nullptr) {};
|
||||
//This is run every time this task is chosen by the scheduler
|
||||
auto Task::unpause() -> struct cpu_state* {
|
||||
|
||||
return cpu_state;
|
||||
}
|
||||
//This is run every time the timer ticks and a task is running
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include <syscall.hpp>
|
||||
#include <base.hpp>
|
||||
#include <textDISP.hpp>
|
||||
#include <string.hpp>
|
||||
ScreenOut::ScreenOut(bool err): err(err) {
|
||||
|
||||
}
|
||||
|
@ -9,9 +10,9 @@ auto ScreenOut::operator<<(char *text) -> ScreenOut & {
|
|||
if(!text)
|
||||
return *this;
|
||||
if(err)
|
||||
MTGosHAL::err << text;
|
||||
MTGosHAL::err << String(text);
|
||||
else
|
||||
MTGosHAL::out << text;
|
||||
MTGosHAL::out << String(text);
|
||||
return *this;
|
||||
}
|
||||
auto ScreenOut::clrscr() -> ScreenOut & {
|
||||
|
@ -40,7 +41,6 @@ auto syscall(uint32_t syscall_num, void* handle, void* args) -> void* {
|
|||
return (void*)(new ScreenOut(((bool *)args)[0]));
|
||||
break;
|
||||
case 1:
|
||||
|
||||
*obj << ((char**)args)[0];
|
||||
return handle;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue