Commit graph

54 commits

Author SHA1 Message Date
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
Jeremy Soller 5b9c821ff5 Initialize contexts, add getpid 2016-08-20 14:32:45 -06:00
Jeremy Soller 3b8f396229 Context list class, static context ID magic 2016-08-20 13:43:35 -06:00
Jeremy Soller 0501b2580d Setup independent page tables, map heap to a single location 2016-08-19 14:53:16 -06:00
Jeremy Soller 55a0154eac Switch to goblin as executable parser 2016-08-19 07:57:24 -06:00
Jeremy Soller 5588c38178 Add syscall handler, still work in progress
Add elf files
2016-08-18 19:44:31 -06:00
Jeremy Soller 2de2d4cac4 Cleanup schemes list, remove lazy_static 2016-08-18 08:10:08 -06:00
Jeremy Soller 8ddddcec9f Print out more useful information about AP and BSP, create kmain_ap 2016-08-17 19:38:04 -06:00
Jeremy Soller 0d995bfb5c Keep track of AP count, allocate bigger AP stack, stack trace function 2016-08-17 19:34:33 -06:00
Jeremy Soller d383cfb595 Lazy static init of schemes 2016-08-16 11:04:14 -06:00
Jeremy Soller 2a66a84a50 Cleanup, use spinlock for allocator 2016-08-15 15:01:24 -06:00
Jeremy Soller cc8fe85e6a GDT and IDT in kernel space
Paging constructs completed, remap kernel before jumping to kmain
Panic will do a stack trace
Remove SSE from none target
2016-08-15 14:34:20 -06:00
Jeremy Soller 9f0819dafb Bump allocator 2016-08-14 22:05:32 -06:00
Jeremy Soller 19077d69db WIP: Schemes 2016-08-14 21:38:32 -06:00
Jeremy Soller 4e270bb807 Add context and file structs 2016-08-14 18:16:56 -06:00
Jeremy Soller a490ff13ae Add syscall module 2016-08-14 15:58:35 -06:00