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
pythoneer
6b8b7c03ab
increase process id range ( #729 )
2016-11-03 07:36:12 -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
Jeremy Soller
e7a4b786b0
Add CPU ID lock
2016-10-23 11:24:10 -06:00
Jeremy Soller
1e2e5a5d31
Event support - demonstration in example scheme
2016-09-23 17:54:39 -06:00
Jeremy Soller
35ad65bbda
Enable SSE and FPU
2016-09-22 16:14:45 -06:00
Jeremy Soller
c5afb10b00
Add exit status to status enum
2016-09-17 09:23:36 -06:00
Jeremy Soller
356ba325ea
Collapse status of context into one status variable
2016-09-16 11:10:53 -06:00
Jeremy Soller
0f27cd24ce
Organize context module
2016-09-16 10:44:52 -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
d3ace7dcad
Allow cloning of kernel threads. Userspace breaks potentially due to stack aliasing
2016-09-13 20:06:39 -06:00
Jeremy Soller
d4ca131391
cr3 in context
2016-09-12 12:21:34 -06:00
Jeremy Soller
70bf79a977
Implement exit, partly
2016-09-11 22:03:03 -06:00
Jeremy Soller
011c8f7f2b
Cleanup heap management
2016-09-11 21:18:18 -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
cf27b3a3ad
Fix close, add dup
2016-09-11 17:31:21 -06:00
Jeremy Soller
9b17495dd6
Implement exec
...
Implement brk
2016-09-10 22:06:09 -06:00
Jeremy Soller
c30f4208d4
Implement sched_yield, enable interrupts in userspace
2016-09-10 19:18:59 -06:00
Jeremy Soller
486bfea62c
Remove debugging messages, launch elf on APs
2016-09-10 19:03:31 -06:00
Jeremy Soller
5c91017579
Draw on VESA for console using ransid
2016-09-01 11:51:33 -06:00
Jeremy Soller
6269f68b03
Fill in all exception and IRQ entries. Handle PIT, keyboard IRQs
2016-08-31 17:45:21 -06:00
Jeremy Soller
2ccc13d212
Merge branch 'master' of https://github.com/redox-os/kernel
2016-08-30 16:23:56 -06:00
Jeremy Soller
9bddf55e93
Improvements for context switching
2016-08-30 16:23:51 -06:00
ticki
9ca3559cc8
Newtype file descriptors.
...
To avoid various bugs regarding the typing of file descriptors, we
newtype them into a simple wrapper type.
- Document some stuff.
2016-08-29 11:58:31 +02:00
Jeremy Soller
f2d2b233f3
Simple, unsafe context switch
2016-08-28 18:38:53 -06:00
Jeremy Soller
24bfb2c81f
Fix the build. Sorry
2016-08-24 19:30:14 -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
Jeremy Soller
954af453dc
Remove clone from context
2016-08-18 09:02:31 -06:00
Jeremy Soller
8fc113adef
Refactor context list
2016-08-18 08:30:45 -06:00
Jeremy Soller
f79d6ce12b
Add context and file structs
2016-08-14 18:16:56 -06:00