Commit Graph

67 Commits

Author SHA1 Message Date
Jeremy Soller 6c308ada46 Workaround for an issue where a leftover grant is not unmapped before reap 2016-12-13 20:41:43 -07:00
Jeremy Soller 528ce22617 More path cleanup 2016-11-29 18:15:53 -07:00
Jeremy Soller ddac22a242 Cleanup path usage 2016-11-29 18:14:10 -07:00
Jeremy Soller 2b302bd6ea Implement O_DIRECTORY, switch to open for mkdir 2016-11-25 18:24:38 -07:00
Jeremy Soller 93d43f7dbc Add signal support - exit on signal 2016-11-17 12:12:02 -07:00
Jeremy Soller c290fd78db Add ability to contain a process in a scheme sandbox 2016-11-16 20:54:38 -07:00
Jeremy Soller 7c35351dc2 Merge branch 'cap2' of https://github.com/Yoric/redox into Yoric-cap2 2016-11-15 14:05:43 -07:00
Jeremy Soller a7bfe1232a Implement more test arch features 2016-11-14 11:04:31 -07:00
David Teller 53c2c7a332 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 008ca3c207 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 c7735dd177 Introducing macros for defining SchemeId, Pid, ... 2016-11-14 07:46:43 +01:00
Jeremy Soller e3f7c9a692 Update scheme documentation 2016-11-04 13:38:40 -06:00
Jeremy Soller 194b674155 Add some documentation 2016-11-03 20:29:19 -06:00
Jeremy Soller ed9c2b9d6c 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 580f30e520 Documenting use of enable_and_halt(). (#21) 2016-10-24 16:03:03 -06:00
Jeremy Soller c680f2531e 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 92b4514895 Fixes for updating submodules 2016-10-14 12:00:25 -06:00
Jeremy Soller d778f0b040 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 7a96e6c9be Add pipe2 2016-10-06 18:46:24 -06:00
Jeremy Soller 82d2c49543 Add permissions to the filesystem, preliminary permissions to the syscalls 2016-10-05 14:24:08 -06:00
Jeremy Soller 2c9a953295 Remove unnecessary slash 2016-09-26 17:39:58 -06:00
Jeremy Soller e390c2d00c WIP: Kevent 2016-09-23 15:47:53 -06:00
Jeremy Soller fcc701cf66 Bring in some coreutils 2016-09-22 19:38:09 -06:00
Jeremy Soller 35ad65bbda Enable SSE and FPU 2016-09-22 16:14:45 -06:00
Jeremy Soller 10a6e148f0 WIP: Userspace console 2016-09-21 12:18:48 -06:00
Jeremy Soller 75016bfe39 Update libstd. Add CWD and associated syscalls. Remove debugging 2016-09-17 19:01:34 -06:00
Jeremy Soller 356ba325ea Collapse status of context into one status variable 2016-09-16 11:10:53 -06:00
Jeremy Soller 5cbd30988c Do not have interrupts enabled during context switch 2016-09-15 08:40:16 -06:00
Jeremy Soller dee5b4dd9e Remove debugging 2016-09-15 08:39:20 -06:00
Jeremy Soller 1711303ef8 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 efd41a857e Store context memory information 2016-09-11 21:04:34 -06:00
Jeremy Soller 86597331cc Allow exec, emulate clone by pretending to be child 2016-09-11 18:03:10 -06:00
Jeremy Soller 7a928a5f97 Improve init process, debug missing syscalls, fix error codes in syscall return 2016-09-11 16:48:58 -06:00
Jeremy Soller 038cf5aba1 PCI driver WIP 2016-09-11 15:56:48 -06:00
Jeremy Soller 9b17495dd6 Implement exec
Implement brk
2016-09-10 22:06:09 -06:00
Jeremy Soller 4692e9b267 Load init from initfs 2016-09-10 19:42:26 -06:00
Jeremy Soller 486bfea62c Remove debugging messages, launch elf on APs 2016-09-10 19:03:31 -06:00
Jeremy Soller 0d115508be Seperate kernel and userspace targets 2016-09-09 19:08:04 -06:00
Jeremy Soller ef9a7c0988 Add syscall library, make init program Rust 2016-09-08 19:10:50 -06:00
Jeremy Soller 44e57773a3 Debug reads writes better, set up stdio for BSP 2016-09-07 21:32:09 -06:00
Jeremy Soller 7c0b17d070 Load a very simple ELF and launch it in usermode 2016-09-07 21:16:30 -06:00
Jeremy Soller 4b98fb8ca3 Improve efficiency of kernel console 2016-09-01 14:39:45 -06:00
Jeremy Soller 5c91017579 Draw on VESA for console using ransid 2016-09-01 11:51:33 -06:00
Jeremy Soller ac9a475ef5 Warnings removal 2016-09-01 11:14:47 -06:00
Jeremy Soller 9bddf55e93 Improvements for context switching 2016-08-30 16:23:51 -06:00
Jeremy Soller f2d2b233f3 Simple, unsafe context switch 2016-08-28 18:38:53 -06:00
Jeremy Soller 5c2b6878a6 Arm! 2016-08-25 17:03:01 -06:00
Jeremy Soller 84873532af Arch context in kernel context 2016-08-24 10:35:42 -06:00
Jeremy Soller aecfa50029 Initialize contexts, add getpid 2016-08-20 14:32:45 -06:00
Jeremy Soller 47280a921a Context list class, static context ID magic 2016-08-20 13:43:35 -06:00