Commit graph

69 commits

Author SHA1 Message Date
Jeremy Soller 79b700b2f6 Update coreutils, remove sys:memory 2016-12-28 17:22:10 -07:00
Jeremy Soller 3853dfd5bc Compile using real libstd, with no crate overrides 2016-12-27 16:47:08 -07:00
Jeremy Soller 4586dbc606 Workaround for an issue where a leftover grant is not unmapped before reap 2016-12-13 20:41:43 -07:00
Jeremy Soller 08555f3a07 More path cleanup 2016-11-29 18:15:53 -07:00
Jeremy Soller 9d879f95ed Cleanup path usage 2016-11-29 18:14:10 -07:00
Jeremy Soller c018bfe5ef Implement O_DIRECTORY, switch to open for mkdir 2016-11-25 18:24:38 -07:00
Jeremy Soller bf292bc0d1 Add signal support - exit on signal 2016-11-17 12:12:02 -07:00
Jeremy Soller d294d56b52 Add ability to contain a process in a scheme sandbox 2016-11-16 20:54:38 -07:00
Jeremy Soller 297b6e09fc Merge branch 'cap2' of https://github.com/Yoric/redox into Yoric-cap2 2016-11-15 14:05:43 -07:00
Jeremy Soller 3c0abadfd0 Implement more test arch features 2016-11-14 11:04:31 -07:00
David Teller 9c90a8fe42 Converting file handles into a new type FileHandle
Keeping file handles (and pids, and scheme id, ...) as usize is a
footgun. Let's remove it.
2016-11-14 07:46:43 +01:00
David Teller 37a34ab7f7 Converting pids into a new type ContextId
Keeping pid (and file descriptor, and scheme id, ...) as usize is a
footgun. Let's remove it.
2016-11-14 07:46:43 +01:00
David Teller 9f7c20bacf Introducing macros for defining SchemeId, Pid, ... 2016-11-14 07:46:43 +01:00
Jeremy Soller 92ac91f4a5 Update scheme documentation 2016-11-04 13:38:40 -06:00
Jeremy Soller cab27d0f67 Add some documentation 2016-11-03 20:29:19 -06:00
Jeremy Soller 149b0297a4 Smp (#23)
* Fire up multiple processors

* Use IPIs to wake up secondary processors

* Much better exception information

* Modifications to show more information on fault

* WIP: Use real libstd

* Add TLS (not complete)

* Add random function, export getpid, cleanup

* Do not spin APs until new context

* Update rust

* Update rust

* Use rd/wrfsbase

* Implement TLS

* Implement compiler builtins and update rust

* Update rust

* Back to Redox libstd

* Update rust
2016-10-31 10:49:00 -06:00
David Teller 76ee483cc9 Documenting use of enable_and_halt(). (#21) 2016-10-24 16:03:03 -06:00
Jeremy Soller a715e157d4 Make all perCPU mappings available in all contexts - this will allow APs to pick up threads 2016-10-23 09:13:12 -06:00
Jeremy Soller 64402cfe6c Fixes for updating submodules 2016-10-14 12:00:25 -06:00
Jeremy Soller 224c43f761 Orbital (#16)
* Port previous ethernet scheme

* Add ipd

* Fix initfs rebuilds, use QEMU user networking addresses in ipd

* Add tcp/udp, netutils, dns, and network config

* Add fsync to network driver

* Add dns, router, subnet by default

* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks

* Add orbital server, WIP

* Add futex

* Add orbutils and orbital

* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad

* Add orbital assets

* Update orbital

* Update to add login manager

* Add blocking primitives, block for most things except waitpid, update orbital

* Wait in waitpid and IRQ, improvements for other waits

* Fevent in root scheme

* WIP: Switch to using fevent

* Reorganize

* Event based e1000d driver

* Superuser-only access to some network schemes, display, and disk

* Superuser root and irq schemes

* Fix orbital
2016-10-13 17:21:42 -06:00
Jeremy Soller f28a128198 Add pipe2 2016-10-06 18:46:24 -06:00
Jeremy Soller f4a1d06f07 Add permissions to the filesystem, preliminary permissions to the syscalls 2016-10-05 14:24:08 -06:00
Jeremy Soller a4df5185d2 Remove unnecessary slash 2016-09-26 17:39:58 -06:00
Jeremy Soller 616dfbc055 WIP: Kevent 2016-09-23 15:47:53 -06:00
Jeremy Soller 9ce5628fa4 Bring in some coreutils 2016-09-22 19:38:09 -06:00
Jeremy Soller bc1b503d25 Enable SSE and FPU 2016-09-22 16:14:45 -06:00
Jeremy Soller 61eb0d1ca8 WIP: Userspace console 2016-09-21 12:18:48 -06:00
Jeremy Soller 57f5699664 Update libstd. Add CWD and associated syscalls. Remove debugging 2016-09-17 19:01:34 -06:00
Jeremy Soller 6ad843184d Collapse status of context into one status variable 2016-09-16 11:10:53 -06:00
Jeremy Soller 997e229f27 Do not have interrupts enabled during context switch 2016-09-15 08:40:16 -06:00
Jeremy Soller 53a5a9188a Remove debugging 2016-09-15 08:39:20 -06:00
Jeremy Soller 33e098c124 Fix implementation of clone and exec. Now the init process can load and execute the pci driver 2016-09-15 08:35:07 -06:00
Jeremy Soller bcd318d80b Store context memory information 2016-09-11 21:04:34 -06:00
Jeremy Soller f0431f4de1 Allow exec, emulate clone by pretending to be child 2016-09-11 18:03:10 -06:00
Jeremy Soller 951831c4bb Improve init process, debug missing syscalls, fix error codes in syscall return 2016-09-11 16:48:58 -06:00
Jeremy Soller c9a4b3882c PCI driver WIP 2016-09-11 15:56:48 -06:00
Jeremy Soller 44e8b99b46 Implement exec
Implement brk
2016-09-10 22:06:09 -06:00
Jeremy Soller f2ca411cd6 Load init from initfs 2016-09-10 19:42:26 -06:00
Jeremy Soller bd7bca30fa Remove debugging messages, launch elf on APs 2016-09-10 19:03:31 -06:00
Jeremy Soller 0b1265d87e Seperate kernel and userspace targets 2016-09-09 19:08:04 -06:00
Jeremy Soller 46f9f90e3c Add syscall library, make init program Rust 2016-09-08 19:10:50 -06:00
Jeremy Soller fb0df8530d Debug reads writes better, set up stdio for BSP 2016-09-07 21:32:09 -06:00
Jeremy Soller 850792bbf1 Load a very simple ELF and launch it in usermode 2016-09-07 21:16:30 -06:00
Jeremy Soller 0ccfd2125a Improve efficiency of kernel console 2016-09-01 14:39:45 -06:00
Jeremy Soller d7d61f82af Draw on VESA for console using ransid 2016-09-01 11:51:33 -06:00
Jeremy Soller 53c71d9183 Warnings removal 2016-09-01 11:14:47 -06:00
Jeremy Soller d3dfff8d51 Improvements for context switching 2016-08-30 16:23:51 -06:00
Jeremy Soller 6e3f59ba8e Simple, unsafe context switch 2016-08-28 18:38:53 -06:00
Jeremy Soller 6715d5c534 Arm! 2016-08-25 17:03:01 -06:00
Jeremy Soller 2be7ccaec2 Arch context in kernel context 2016-08-24 10:35:42 -06:00