Revision tags: xv6-rev11 |
|
#
ed396c06 |
| 01-Feb-2017 |
Frans Kaashoek <kaashoek@mit.edu> |
Eliminate code for gs trick to track per-cpu state. We rely on lapiccpunum() to find a per-cpu id with which we locate a cpu's cpu struct.
|
#
fbb4c094 |
| 01-Feb-2017 |
Frans Kaashoek <kaashoek@mit.edu> |
Read curproc from cpu structure, but be careful because after a schedule event myproc() points to a different thread.
myproc(); sched(); myproc(); // this proc maybe different than the one
Read curproc from cpu structure, but be careful because after a schedule event myproc() points to a different thread.
myproc(); sched(); myproc(); // this proc maybe different than the one before sched
Thus, in a function that operates on one thread better to retrieve the current process once at the start of the function.
show more ...
|
#
abf847a0 |
| 31-Jan-2017 |
Frans Kaashoek <kaashoek@mit.edu> |
Start of an experiment to remove the use of gs for cpu local variables.
|
Revision tags: xv6-rev9 |
|
#
ae15515d |
| 02-Sep-2016 |
Frans Kaashoek <kaashoek@mit.edu> |
APIC IDs may not be consecutive and start from zero, so we cannot really use it as a direct index into cpus. Record apicid in struct cpu and have cpunum() look for it. Replace cpu->id with cpunum()
APIC IDs may not be consecutive and start from zero, so we cannot really use it as a direct index into cpus. Record apicid in struct cpu and have cpunum() look for it. Replace cpu->id with cpunum() everywhere, and replace cpu->id with cpu->apicid. Thanks to Xi Wang.
show more ...
|
#
7894fcd2 |
| 25-Aug-2016 |
Frans Kaashoek <kaashoek@mit.edu> |
Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick)
|
#
858475e4 |
| 10-Aug-2016 |
Robert Morris <rtm@csail.mit.edu> |
tiny clarifications to some gdt code.
|
Revision tags: xv6-rev8 |
|
#
020c8e23 |
| 04-Aug-2014 |
Robert Morris <rtm@csail.mit.edu> |
use acquire/release to force order for pid=np->pid;np->state=RUNNING for bug reported by symingz@gmail.com and cs1100254@cse.iitd.ernet.in
|
Revision tags: xv6-rev7 |
|
#
8960f60b |
| 28-Aug-2012 |
Robert Morris <rtm@csail.mit.edu> |
junk
|
Revision tags: osdi12-submit, xv6-rev6 |
|
#
a4b213cf |
| 16-Aug-2011 |
Frans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local> |
Avoid "boot" in xv6
|
#
a56c8d60 |
| 08-Aug-2011 |
Frans Kaashoek <kaashoek@79.sub-75-194-237.myvzw.com> |
One definition of several macros and constants
|
Revision tags: xv6-rev5 |
|
#
faad047a |
| 13-Sep-2010 |
Robert Morris <rtm@csail.mit.edu> |
change some comments, maybe more informative delete most comments from bootother.S (since copy of bootasm.S) ksegment() -> seginit() move more stuff from main() to mainc()
|
Revision tags: xv6-2010, xv6-rev4 |
|
#
d8828817 |
| 02-Sep-2010 |
Austin Clements <amdragon@mit.edu> |
Rearrange proc.h and proc.c to get our action-packed spreads back (mostly). They also make sense in this order, so it's not just for page layout.
|
#
1280d268 |
| 02-Sep-2010 |
Austin Clements <amdragon@mit.edu> |
Oops, missed a comment about the stack guard
|
#
c4cc10da |
| 06-Aug-2010 |
Robert Morris <rtm@nephron.lcs.mit.edu> |
fix corner cases in exec of ELF put an invalid page below the stack have fork() handle invalid pages
|
#
1afc9d3f |
| 06-Aug-2010 |
Robert Morris <rtm@nephron.lcs.mit.edu> |
add some comments find out the hard way why user and kernel must have separate segment descriptors
|
#
40889627 |
| 02-Jul-2010 |
Frans Kaashoek <kaashoek@fransk-6.local> |
Initial version of single-cpu xv6 with page tables
|
#
ab777a9a |
| 07-Oct-2009 |
Frans Kaashoek <kaashoek@30-7-101.wireless.csail.mit.edu> |
fine-tune comment
|
#
fb486874 |
| 07-Oct-2009 |
Frans Kaashoek <kaashoek@30-7-101.wireless.csail.mit.edu> |
fine tune comment
|
Revision tags: xv6-rev3 |
|
#
7e0cc8e3 |
| 02-Sep-2009 |
Russ Cox <rsc@x40.(none)> |
another attempt at cpu-local variables. this time do it ourselves instead of piggybacking on TLS. add -fno-pic to Makefile; pic code breaks our fake TLS.
|
#
f8ab2079 |
| 02-Sep-2009 |
Russ Cox <rsc@x40.(none)> |
fix TLS again; still not quite but a lot better.
|
#
57ae1463 |
| 02-Sep-2009 |
Russ Cox <rsc@x40.(none)> |
Fix TLS for PIC systems
|
#
48755214 |
| 31-Aug-2009 |
Russ Cox <rsc@swtch.com> |
assorted fixes: * rename c/cp to cpu/proc * rename cpu.context to cpu.scheduler * fix some comments * formatting for printout
|
#
34295f46 |
| 31-May-2009 |
rsc <rsc> |
group locks into structs they protect. few naming nits.
|
#
030a4773 |
| 31-May-2009 |
rsc <rsc> |
tab police
|
#
19333efb |
| 31-May-2009 |
rsc <rsc> |
Some proc cleanup, moving some of copyproc into allocproc.
Also, an experiment: use "thread-local" storage for c and cp instead of the #define macro for curproc[cpu()].
|