-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove linker args * Add binaries * Read /bin for autocomplete * Add /bin path to commands * Remove api bin * Remove usr reboot
- Loading branch information
Showing
20 changed files
with
128 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[bits 64] | ||
|
||
section .data | ||
msg: db "Not implemented", 10 | ||
|
||
global _start | ||
section .text | ||
_start: | ||
mov rax, 4 ; syscall number for WRITE | ||
mov rdi, 1 ; standard output | ||
mov rsi, msg ; addr of string | ||
mov rdx, 16 ; size of string | ||
int 0x80 | ||
mov rax, 1 ; syscall number for EXIT | ||
mov rdi, 0 ; no error | ||
int 0x80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[bits 64] | ||
|
||
section .data | ||
msg: db "Not implemented", 10 | ||
|
||
global _start | ||
section .text | ||
_start: | ||
mov rax, 4 ; syscall number for WRITE | ||
mov rdi, 1 ; standard output | ||
mov rsi, msg ; addr of string | ||
mov rdx, 16 ; size of string | ||
int 0x80 | ||
mov rax, 1 ; syscall number for EXIT | ||
mov rdi, 0 ; no error | ||
int 0x80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[bits 64] | ||
|
||
section .data | ||
msg: db "Not implemented", 10 | ||
|
||
global _start | ||
section .text | ||
_start: | ||
mov rax, 4 ; syscall number for WRITE | ||
mov rdi, 1 ; standard output | ||
mov rsi, msg ; addr of string | ||
mov rdx, 16 ; size of string | ||
int 0x80 | ||
mov rax, 1 ; syscall number for EXIT | ||
mov rdi, 0 ; no error | ||
int 0x80 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#![no_std] | ||
#![no_main] | ||
|
||
use moros::api::syscall; | ||
|
||
use core::panic::PanicInfo; | ||
|
||
#[panic_handler] | ||
fn panic(_info: &PanicInfo) -> ! { | ||
syscall::write(1, b"An exception occured!\n"); | ||
loop {} | ||
} | ||
|
||
#[no_mangle] | ||
pub unsafe extern "sysv64" fn _start() { | ||
syscall::write(1, b"\x1b[93m"); // Yellow | ||
syscall::write(1, b"MOROS has reached its fate, the system is now halting.\n"); | ||
syscall::write(1, b"\x1b[0m"); // Reset | ||
syscall::sleep(0.5); | ||
syscall::halt(); | ||
loop { syscall::sleep(1.0) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#![no_std] | ||
#![no_main] | ||
|
||
use moros::api::syscall; | ||
|
||
use core::panic::PanicInfo; | ||
|
||
#[panic_handler] | ||
fn panic(_info: &PanicInfo) -> ! { | ||
syscall::write(1, b"An exception occured!\n"); | ||
loop {} | ||
} | ||
|
||
#[no_mangle] | ||
pub unsafe extern "sysv64" fn _start() { | ||
syscall::write(1, b"\x1b[93m"); // Yellow | ||
syscall::write(1, b"MOROS has reached its fate, the system is now rebooting.\n"); | ||
syscall::write(1, b"\x1b[0m"); // Reset | ||
syscall::sleep(0.5); | ||
syscall::reboot(); | ||
loop { syscall::sleep(1.0) } | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters