Commit Graph

578 Commits

Author SHA1 Message Date
Vincent Ollivier 5ca0894241
Update documentation (#592)
* Add ntp to manual

* Refactor ntp script

* Update website

* Update install output

* Move ntp to the bottom of the manual

* Update light palette screenshot

* Update manual install output

* Update changelog

* Refactor net code

* Update website

* Update binaries

* Refactor long lines

* Update changelog

* Refactor device try_from

* Update doc
2024-03-15 19:08:10 +01:00
Vincent Ollivier 4922b2efa8
Improve setup process (#596)
* Use error and warning for late boot messages

* Remove diskless mode message

* Add option to install system in memory
2024-03-13 19:09:36 +01:00
Kidhar Bachan f29b7b1f9f
Adds a helpful println when MFS is not mounted (#595)
* Adds a helpful println when MFS is not mounted

* Addresses review comments

* Merges 2 printlns into 1 with more concise wording
2024-03-13 11:42:25 +01:00
dependabot[bot] 09497880d0
Bump pic8259 from 0.10.4 to 0.11.0 (#594) 2024-03-12 07:18:07 +00:00
dependabot[bot] a3074db1b6
Bump object from 0.33.0 to 0.34.0 (#593) 2024-03-12 07:14:20 +00:00
Vincent Ollivier 6f1de4edf4
Add drive device (#555)
* Add drive device

* Add TODO comments

* Add specific information to device files

* Handle invalid drive

* Create device file for each possible drive

* Change error messages on read failures

* Replace From with TryFrom for Device

* Refactor Device::try_from

* Add TODO comment

* Handle drive end of file

* Fix merge issue
2024-03-11 12:29:25 +01:00
Vincent Ollivier 10d9ba5833
Add memory dump command (#574)
* Add memory dump command

* Refactor disk help

* Display binary size option in list help
2024-03-11 12:27:53 +01:00
Vincent Ollivier 521b30f63e Update changelog 2024-03-10 19:21:31 +01:00
Vincent Ollivier 6652df77e8
Fix shell autocomplete (#591) 2024-03-09 13:24:06 +01:00
Vincent Ollivier 84d4d2edf4
Update x86_64 crate from 0.14.12 to 0.15.0 (#590)
* Bump x86_64 crate from 0.14.12 to 0.15.0

* Update VirtAddr offset type

* Replace GDT add_entry by append

* Update IDT index type

* Update CR2 read type

* Use Option<InterruptStackFrameValue> for process stack frame
2024-03-06 09:00:20 +01:00
Vincent Ollivier f2f64c4512 Fix typo in readme 2024-03-06 08:59:42 +01:00
dependabot[bot] f179301fe1
Bump object from 0.32.2 to 0.33.0 (#589) 2024-03-05 10:03:19 +00:00
Vincent Ollivier d9e3702df0
Add env vars to customize screen size (#585) 2024-02-28 13:42:28 +01:00
dependabot[bot] fa1fbcd29c
Bump bootloader from 0.9.24 to 0.9.28 (#586) 2024-02-28 09:56:07 +00:00
Vincent Ollivier acd213b5cc
Add timeout to socket accept (#584)
* Add timeout to socket accept

* Fix doc
2024-02-25 09:48:35 +01:00
Vincent Ollivier c923c4c6ff Update changelog 2024-02-24 14:44:26 +01:00
Vincent Ollivier 86e43e0999
Skip ATA drive selection when not needed (#576)
* Skip select drive when not needed

* Add comments
2024-02-24 14:42:49 +01:00
Vincent Ollivier aff91aefcf
Initialize ACPI module at boot time (#583) 2024-02-24 10:09:20 +01:00
Vincent Ollivier e06d068f9f
Display non printable ascii chars with a dark dot (#580)
* Display non printable ascii chars with a dark dot

* Revert into_iter
2024-02-21 08:49:44 +01:00
Vincent Ollivier 699ddf0ad8
Add time synchronisation with NTP (#579)
* Add api::time::from_timestamp_utc function

* Add date function to lisp

* Add file/exists? function to lisp

* Rewrite lisp ntp client

* Update NTP packet to work with more servers

* Fix userspace binaries build
2024-02-18 21:41:03 +01:00
Vincent Ollivier 5e92dcb2d0
Run clippy (#581) 2024-02-18 21:34:32 +01:00
Vincent Ollivier 6c8ffb2c98
Add kernel log to buffer in memory (#578)
* Add LogBuffer struct

* Store logs to buffer

* Refactor macros

* Create log dir

* Add log command to print logs

* Refactor line endings

* Hide CPU frequency when zero

* Log RTC updates
2024-02-13 19:28:23 +01:00
dependabot[bot] d1be3b7b40
Bump x86_64 from 0.14.11 to 0.14.12 (#577) 2024-02-13 08:38:21 +00:00
Vincent Ollivier c3cf72bbbe
Fix socket status reading (#575) 2024-02-11 09:27:47 +01:00
dependabot[bot] 69ab9ebf17
Bump num-traits from 0.2.17 to 0.2.18 (#572) 2024-02-10 10:16:47 +00:00
Vincent Ollivier 13aeaeb8aa
Fix random memory issues (#573)
* Move AmlContext

* Add more information for already mapped pages

* Increase stack size for ACPI shutdown

* Refactor phys_to_virt
2024-02-08 21:25:16 +01:00
dependabot[bot] a511647bad
Bump bootloader from 0.9.23 to 0.9.24 (#571) 2024-01-29 21:47:23 +00:00
Vincent Ollivier 0555e2f1ee Update changelog 2024-01-26 09:36:00 +01:00
Vincent Ollivier 0ba87525cc
Add hashbang support to execute scripts (#570)
* Add shebang support to execute scripts

* Trim interpreter string
2024-01-26 09:22:49 +01:00
Vincent Ollivier 334425b925 Fix typo 2024-01-23 21:23:02 +01:00
Vincent Ollivier c5dc33dafb Fix palette init 2024-01-18 22:19:50 +01:00
Vincent Ollivier aada07a3ef
Refactor everything to stay below 80 chars per line (#567)
* Refactor everything to stay below 80 chars per line

* Refactor hash command

* Refactor code changed by cargo fmt

* Refactor code

* Realign syscall numbers

* Update readme
2024-01-17 20:27:06 +01:00
Vincent Ollivier a9eb6f9c21
Add ANSI OSC color palette support (#566)
* Refactor vga palette code

* Add osc dispatch to handle ansi palette

* Add warning macro

* Deprecate vga set palette command

* Add shell script to set palettes

* Remove TODO

* Add new TODO comments

* Add reset sequence

* Add cursor edge checks
2024-01-09 00:18:47 +01:00
dependabot[bot] 1de69e0d4d
Bump uart_16550 from 0.2.19 to 0.3.0 (#524) 2024-01-04 19:19:50 +00:00
dependabot[bot] 3b15905a46
Bump object from 0.32.1 to 0.32.2 (#564) 2024-01-04 19:13:41 +00:00
dependabot[bot] 50413914cd
Bump smoltcp from 0.10.0 to 0.11.0 (#565) 2024-01-04 19:12:31 +00:00
Vincent Ollivier 10ce053a32
Add escape sequences to shell (#558) 2024-01-04 20:07:00 +01:00
Vincent Ollivier 362e905990
Publish version 0.10.2 (#562)
* Bump MOROS version to 0.10.2

* Update changelog

* Bump lisp to 0.7.0

* Update documentation

* Add links to PRs in changelog

* Add missed version bumps in doc

* Update screenshot

* Update some binaries
2023-12-22 11:52:47 +01:00
Vincent Ollivier b83ace31a7 Update changelog 2023-12-21 10:08:51 +01:00
Vincent Ollivier 82bc08ed96
Add number->string function to lisp (#561)
* Add number->string function

* Add alias

* Add documentation
2023-12-19 22:51:13 +01:00
Vincent Ollivier 9f525990a5
Improve Lisp with Advent of Code 2023 🎄 (#556)
* Add contains? to Lisp

* Use ls everywhere instead of lst

* Rename system command to shell

* Exec '/ini/lisp.lsp' at startup

* Check if init file exist

* Add missing lisp init file

* Remove contains?

* Add empty? function

* Add reject? function

* Update doc

* Add dict type to Lisp

* Add push function

* Add binary literals to doc

* Move push function from primitive to core lib

* Update lisp doc

* Add escape character to parser

* Add backspace to parser

* Update doc

* Add host function

* Fix regex.match?

* Test if and while for truthiness instead of comparing with true

* Add tests for empty string and 0

* Mention truthiness in changelog

* Check for unspecified IPv4 in usr::host::resolv

* Transform host error into nil

* Update ntp.lsp to support hostnames

* Fix typo

* Fix escape display

* Use '/' instead of '.' as namespace separator

* Add doc.lsp

* Fix comment color

* Update changelog
2023-12-17 17:24:55 +01:00
Vincent Ollivier 525b1dcca3
Upgrade toolchain from 2023-05-01 to 2023-12-01 (#559)
* Upgrade toolchain from 2023-05-01 to 2023-12-01

* Remove redundant call

* Rebuild binaries

* Remove redundant redefinition of a binding
2023-12-17 17:24:23 +01:00
Vincent Ollivier d22c504726
Improve system information (#553)
* Add socket command to manual

* Update syscall doc

* Update copyright year in help command

* Fix lisp include

* Fix error styling in shell

* Use uppercase hex

* Update website

* Move some CSI color positions

* Update line-height
2023-12-01 16:51:02 +01:00
Vincent Ollivier ae6d47aec7
Add hash command (#554)
* Add hash command

* Fix globbing without dir

* Add missing file
2023-11-30 00:43:10 +01:00
Vincent Ollivier 9086221bac
Improve binary support (#552)
* Remove 0X notation

* Fix method name

* Add binary

* Replace {:#x} with {:#X}

* Replace {:#016x} with {:#016X}

* Rewrite print_hex

* Use offset in elf command

* Replace remaining ':#x' format
2023-11-26 11:56:25 +01:00
Vincent Ollivier bd4672cc36 Rewrite parts of CONTRIBUTING.md 2023-11-21 10:03:51 +01:00
Vincent Ollivier 0fac4d40d7 Update changelog 2023-11-21 10:02:03 +01:00
Vincent Ollivier 4327e1eb26 Rewrite parts of CONTRIBUTING.md 2023-11-21 10:01:10 +01:00
Vincent Ollivier 419001cc26
Add basic userspace shell (#548)
* Increase MAX_PROCS to 4

* Check MAX_PID before creating a process

* Remove id from Process::new()

* Add parent_id to Process

* Add exec command

* Avoid freeing outside of the heap

* Add debug output

* Disable free operation

* Add args to exec commands

* Fix warning

* Include exec binary

* Revert cmd split

* Add disabled debug output for some syscalls

* Remove undocumented proc command

* Disable exec and hello install
2023-11-21 09:26:19 +01:00
Vincent Ollivier 85c055f812 Remove debug output 2023-11-20 20:50:04 +01:00