Commit Graph

329 Commits

Author SHA1 Message Date
Vincent Ollivier 407d20c75c
Improve FUSE driver with write and delete (#292)
* Add write to FUSE driver

* Update code

* Fix file creation

* Remove debug print

* Remove more print statements

* Remove unsupported function

* Fix entries

* Allocate space for new dir entry

* Fix dir block size computation

* Add unlink

* Refactor private methods

* Remove debug operation
2022-04-15 13:00:54 +02:00
Vincent Ollivier 512b60564b
Fix device reading (#329)
* Avoid panic when reading device files

* Skip devices in find

* Fix root path in find
2022-04-15 13:00:33 +02:00
Vincent Ollivier dab43ade5b Update changelog 2022-04-12 10:07:08 +02:00
Vincent Ollivier 18bfaf93d7
Add a reboot command (#328)
* Add a reboot command

* Add STOP syscall

* Add ctrl-alt-del reboot keys

* Add comment to keyboard shortcut
2022-04-12 09:55:53 +02:00
Vincent Ollivier 41eaae9fbe
Fix issues with process alloc (#327)
* Fix off by one errors

* Simplify phys_addr

* Add offset to frame allocator

* Change code_addr

* Remove unknown commands

* Use allocated frames counter

* Remove debug code
2022-04-11 19:06:16 +02:00
Vincent Ollivier d365e18ec9 Publish version 0.7.1 2022-04-10 09:35:47 +02:00
Vincent Ollivier 5dce839e24 Update changelog 2022-04-10 09:31:45 +02:00
Vincent Ollivier 946ea95ff0
Refactor network commands (#322)
* Change debug color

* Rewrite net command

* Update doc

* Add dhcp --verbose

* Remove ip and route commands

* Align command outputs

* Adjust colors

* Use system dns if available with host command

* Add error macro

* Display network error

* Use error macro

* Fix broken test

* Update dir listing color

* Update syscall doc

* Use error macro in more commands
2022-04-10 09:27:12 +02:00
Vincent Ollivier 478faa7f27
Autocomplete binary path (#324) 2022-04-10 08:39:51 +02:00
Vincent Ollivier dd2b20f800
Handle backtab key for backward autocompletion (#321)
* Handle backtab key

* Handle backtab in editor
2022-04-09 09:24:05 +02:00
Vincent Ollivier 042367eb80 Update copyright year 2022-04-05 15:02:39 +02:00
Vincent Ollivier 2582dab09a Update changelog 2022-04-05 13:06:15 +02:00
dependabot[bot] 83d5b03b20
Bump object from 0.27.1 to 0.28.3 (#305) 2022-04-05 11:04:29 +00:00
Vincent Ollivier 3bef35b707
Upgrade smoltcp (#293)
* Upgrade smoltcp

* Fix issues

* Add back net monitor

* Update doc

* Fix net command help
2022-04-05 13:03:55 +02:00
dependabot[bot] b7fe97985c
Bump uart_16550 from 0.2.16 to 0.2.17 (#318) 2022-04-05 10:16:38 +00:00
dependabot[bot] 4a8d5edcf5
Bump x86_64 from 0.14.8 to 0.14.9 (#319) 2022-04-05 10:10:58 +00:00
Vincent Ollivier e785942792
Update rust toolchain (#320)
* Update rust-toolchain file

* Remove stable features

* Update bootloader crate

* Remove toolchain from GitHub Actions

* Avoid running installer interactively

* Remove rustup component add commands
2022-04-05 12:03:31 +02:00
dependabot[bot] 2eca645965
Bump raw-cpuid from 10.2.0 to 10.3.0 (#317) 2022-03-31 20:01:57 +00:00
dependabot[bot] 65d823467f
Bump pbkdf2 from 0.10.0 to 0.11.0 (#316) 2022-03-20 12:46:25 +00:00
dependabot[bot] f87a65d7a0
Bump x86_64 from 0.14.7 to 0.14.8 (#308) 2022-03-19 18:38:30 +00:00
dependabot[bot] 6a893133a1
Bump libm from 0.2.1 to 0.2.2 (#309) 2022-03-19 18:38:08 +00:00
dependabot[bot] 59034e6c8f
Bump rand from 0.8.4 to 0.8.5 (#310) 2022-03-19 18:34:57 +00:00
dependabot[bot] d789af6042
Bump sha2 from 0.10.1 to 0.10.2 (#312) 2022-03-19 18:29:20 +00:00
dependabot[bot] cc59aeec49
Bump hmac from 0.12.0 to 0.12.1 (#313) 2022-03-19 18:29:03 +00:00
dependabot[bot] 38e13e66cf
Bump nom from 7.1.0 to 7.1.1 (#315) 2022-03-19 18:28:29 +00:00
Vincent Ollivier 8c766bf686 Update changelog 2022-01-25 21:46:23 +01:00
Vincent Ollivier f044066f77
Fix various issues while reading files (#307)
* Define device file buffer in kernel

* Implement from u8 for Device

* Reading /dev/null result in error

* Reading an empty dir should not result in error

* Print all bytes from reading devices

* Print errors while reading devices

* Handle ^C and ^D when reading /dev/console

* Create pseudo device files for clocks

* Avoid hardcoding ^C and ^D

* Add missing comment
2022-01-25 21:42:21 +01:00
Vincent Ollivier d06f641731
Add Box to process data (#306)
* Add Box to file handle array

* Add Box to process table

* Update comment
2022-01-24 20:35:00 +01:00
Vincent Ollivier 5243c08f59 Fix dir creation during install 2022-01-22 21:31:06 +01:00
Vincent Ollivier 9708796976
Add directory support to userspace (#303)
* Create dirs from userspace

* Add delete syscall

* Add name to FileStat

* Add offset to Dir

* Add dynamic size to dir

* Add FileStat (de)serializer

* Add ReadDir#block_index

* Add FileStat::root

* Implement FileIO#read for Dir

* Add api::fs::read_dir

* Use read_dir for list command

* Allow read /path/to/dir/ commands

* Save dir size to dir entry

* Fix return value of api::fs::create_device

* Read dir from userspace

* Add proc command

* Close file handle when creating dir

* Add /dev/null

* Remove path restriction

* Allow listing of singular file

* Update doc

* Re-export fs struc in API

* Use read_dir in shell autocomplete

* Use fs::delete in httpd

* Rename stat to info

* Update doc

* Rename attributes
2022-01-18 08:44:10 +01:00
dependabot[bot] 00f1211194
Bump rand_chacha from 0.3.0 to 0.3.1 (#175) 2022-01-12 18:15:50 +00:00
dependabot[bot] 741c8d35dc
Bump aml from 0.16.0 to 0.16.1 (#297) 2022-01-12 08:56:04 +00:00
dependabot[bot] 84583ee87c
Bump sha2 from 0.10.0 to 0.10.1 (#299) 2022-01-12 08:39:16 +00:00
dependabot[bot] 3e997678b8
Bump uart_16550 from 0.2.15 to 0.2.16 (#301) 2022-01-12 08:32:32 +00:00
dependabot[bot] 0d1fce6a30
Bump bootloader from 0.9.20 to 0.9.21 (#302) 2022-01-12 08:28:48 +00:00
Vincent Ollivier e2ff0ac6c4
Improve file reading (#296)
* Move path canonicalization from API to kernel

* Add api::fs::read_exact

* Add read-bytes to lisp

* Add str function to lisp

* Rename fs::read to fs::read_to_bytes

* Rename fs::read_exact to fs::read

* Add bytes fonction to lisp

* Add progn special form to lisp

* Fix failing test
2022-01-05 19:47:28 +01:00
Vincent Ollivier e96f250c55
Display RTC during boot (#298) 2022-01-04 10:06:58 +01:00
Vincent Ollivier 5d077dafe0 Update changelog 2022-01-01 18:08:57 +01:00
Vincent Ollivier 6d9e46408b
Add 2048 game (#295)
* Add 2048 game

* Fix issue with RNG API

* Fix issue with ANSI cursor movements

* Refactor code

* Fix seed

* Rename pow command to 2048
2022-01-01 18:06:22 +01:00
Vincent Ollivier 1959b31f62
Improve documentation (#294)
* Add calc doc

* Link doc from readme

* Rename stdnil to stdnull

* Add items to the TODO list in the README

* Update instructions in the README

* Improve feature list in README

* Add link to doc in README

* Disable unused show command

* Add colors to chess perf command
2021-12-29 22:56:08 +01:00
Vincent Ollivier 237d78339f
Improve help (#291)
* Improve help command

* Impove disk --help

* Add find --help

* Add list --help

* Add net --help

* Improve pci --help

* Add beep --help

* Add http --help

* Fix http args parsing

* Add memory --help

* Add keyboard --help
2021-12-23 18:30:59 +01:00
dependabot[bot] ee5779724b
Bump bootloader from 0.9.19 to 0.9.20 (#290) 2021-12-22 23:44:23 +00:00
dependabot[bot] b47dad771f
Bump x86_64 from 0.14.6 to 0.14.7 (#289) 2021-12-22 23:42:44 +00:00
Vincent Ollivier 5cdf2d4db3
Refactor code (#288)
* Remove test command

* Add changes suggested by clippy

* Update crypto crates

* Fix offset in fuse driver

* Fix RNG on old CPUs

* Add disabled logging to fuse driver

* Remove deplicate code with a generator

* Fix scan of invalid path

* Rewrite fuse fs reading
2021-12-22 20:49:17 +01:00
Vincent Ollivier 20a4bd37d0
Improve ATA driver (#286)
* Improve identify data parsing

* Read status from alternate status register

* Update identify command

* Fix overflow in disk size printing

* Rewrite ATA PIO driver according to ATA-4 spec

* Add 'disk erase' command

* Fix issue with shell redirection in diskless mode

* Check for existence of passwords file during login

* Add IdentifyResponse enum

* Refactor lba match

* Disable debug output on command aborted

* Refactor code

* Pin specific compiler version

* Add spec in comment
2021-12-19 10:03:09 +01:00
Vincent Ollivier 1dc1fa8dfc
Pin rustc version (#287)
* Pin specific compiler version

* Add components to toolchain

* Update CI config

* Rename back rust-toolchain

* Revert to legacy format
2021-12-17 20:22:09 +01:00
Vincent Ollivier 442c17218d Publish version 0.7.0 2021-12-12 12:39:09 +01:00
Vincent Ollivier acc4459f64
Add time module to API (#284)
* Add time module to API

* Remove rej files
2021-12-12 11:58:02 +01:00
Vincent Ollivier 313f90ee73
Extend lisp language (#278)
* Add map builtin

* Rename ensure_length macro

* Update documentation

* Update map function

* Rename map to mapcar

* Add modulo to calculator

* Add division, modulo, and exponential to lisp

* Add type to built in functions

* Add string comparisons

* Update atom function

* Add basic load function

* Update load to parse multiple expressions

* Escape quote in string display

* Move print definition

* Rename read-file to read

* Simplify mapcar implementation

* Update tests

* Add comment and test

* Add standard library

* Add lib to install

* Refactor eval

* Refactor eq

* Refactor eval with ensure macros

* Add more tests

* Redefine primitives

* Move primitives to /ini/lisp/core.lsp

* Update install file

* Refactor eval

* Create /ini/lisp
2021-12-12 11:43:57 +01:00
Vincent Ollivier 985d24a785 Merge branch 'trunk' of github.com:vinc/moros into trunk 2021-12-07 08:18:08 +01:00