History log of /xv6-public/trapasm.S (Results 1 – 24 of 24)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: xv6-rev11
# 3e392c72 09-Aug-2017 Frans Kaashoek <kaashoek@mit.edu>

Update comment to reflect xv6 doesn't have per-cpu segments anymore


# 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.


Revision tags: xv6-rev9, xv6-rev8, xv6-rev7, osdi12-submit, xv6-rev6
# 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, xv6-2010, xv6-rev4, xv6-rev3
# 2c5f7aba 12-Jul-2009 Russ Cox <rsc@swtch.com>

initproc, usegment, swtch tweaks


# 7b644318 31-May-2009 rsc <rsc>

clean up %fs %gs use


# e97519a6 31-May-2009 rsc <rsc>

sync with c; .text is implied


# c7317d4d 24-Sep-2008 kolya <kolya>

always save and restore %fs, %gs to ensure old segment entries are never
accessible to user from the hidden CPU segment registers.


Revision tags: xv6-2008, xv6-2007, xv6-rev1
# c1b100e9 28-Aug-2007 rsc <rsc>

nits


# efc12b8e 27-Aug-2007 rsc <rsc>

Replace yield system call with sleep.


# e1872bb1 27-Aug-2007 rsc <rsc>

formatting, fix comment


# eaea18cb 22-Aug-2007 rsc <rsc>

PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf

Various changes made while offline.

+ bwrite sector argument is redundant; use b->sector.
+ reformatting of files for nicer PDF page breaks
+ distinguis

PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf

Various changes made while offline.

+ bwrite sector argument is redundant; use b->sector.
+ reformatting of files for nicer PDF page breaks
+ distinguish between locked, unlocked inodes in type signatures
+ change FD_FILE to FD_INODE
+ move userinit (nee proc0init) to proc.c
+ move ROOTDEV to param.h
+ always parenthesize sizeof argument

show more ...


Revision tags: symlinks, xv6-2006, xv6-rev0
# 9e9bcaf1 06-Sep-2006 rsc <rsc>

standardize various * conventions


# a650c606 06-Sep-2006 rsc <rsc>

spacing fixes: no tabs, 2-space indents (for rtm)


# dfcc5b99 29-Aug-2006 rtm <rtm>

prune unneeded panics and debug output


# 856e1fc1 16-Jul-2006 rsc <rsc>

Attempt to clean up newproc somewhat.

Also remove all calls to memcpy in favor of
memmove, which has defined semantics when
the ranges overlap. The fact that memcpy was
working in console.c to scro

Attempt to clean up newproc somewhat.

Also remove all calls to memcpy in favor of
memmove, which has defined semantics when
the ranges overlap. The fact that memcpy was
working in console.c to scroll the screen is not
guaranteed by all implementations.

show more ...


# 65bd8e13 16-Jul-2006 rsc <rsc>

New scheduler.

Removed cli and sti stack in favor of tracking
number of locks held on each CPU and explicit
conditionals in spinlock.c.


# 4e8f237b 12-Jul-2006 rtm <rtm>

no more big kernel lock
succeeds at usertests.c pipe test


# 5ce9751c 11-Jul-2006 rsc <rsc>

Changes to allow use of native x86 ELF compilers, which on my
Linux 2.4 box using gcc 3.4.6 don't seem to follow the same
conventions as the i386-jos-elf-gcc compilers.
Can run make 'TOOLPREFIX=' or

Changes to allow use of native x86 ELF compilers, which on my
Linux 2.4 box using gcc 3.4.6 don't seem to follow the same
conventions as the i386-jos-elf-gcc compilers.
Can run make 'TOOLPREFIX=' or edit the Makefile.

curproc[cpu()] can now be NULL, indicating that no proc is running.
This seemed safer to me than having curproc[0] and curproc[1]
both pointing at proc[0] potentially.

The old implementation of swtch depended on the stack frame layout
used inside swtch being okay to return from on the other stack
(exactly the V6 you are not expected to understand this).
It also could be called in two contexts: at boot time, to schedule
the very first process, and later, on behalf of a process, to sleep
or schedule some other process.

I split this into two functions: scheduler and swtch.

The scheduler is now a separate never-returning function, invoked
by each cpu once set up. The scheduler looks like:

scheduler() {
setjmp(cpu.context);

pick proc to schedule
blah blah blah

longjmp(proc.context)
}

The new swtch is intended to be called only when curproc[cpu()] is not NULL,
that is, only on behalf of a user proc. It does:

swtch() {
if(setjmp(proc.context) == 0)
longjmp(cpu.context)
}

to save the current proc context and then jump over to the scheduler,
running on the cpu stack.

Similarly the system call stubs are now in assembly in usys.S to avoid
needing to know the details of stack frame layout used by the compiler.

Also various changes in the debugging prints.

show more ...


# 7df1310b 22-Jun-2006 rtm <rtm>

bug in trapret


# df5cc916 22-Jun-2006 rtm <rtm>

compile "user programs"
curproc array


# 21a88fd4 22-Jun-2006 kaashoek <kaashoek>

checkpoint. booting second processor. stack is messed up, but thanks to cliff
and plan 9 code, at least boots and gets into C code.


# a4c03dea 15-Jun-2006 rtm <rtm>

primitive fork and exit system calls


# 0a70d042 13-Jun-2006 rtm <rtm>

more or less take traps/interrupts


# 55e95b16 12-Jun-2006 rtm <rtm>

import