Changeset e515167d in mainline for arch/amd64/src/proc/scheduler.c


Ignore:
Timestamp:
2005-09-03T09:52:47Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be56c17
Parents:
5a5ed25
Message:

Added basic FPU context (not working).
Added CPU utilities from ia32
Fixed bug in vm.c that wanted PTL to be mapped in bottom memory.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/proc/scheduler.c

    r5a5ed25 re515167d  
    11/*
    2  * Copyright (C) 2005 Jakub Vana
     2 * Copyright (C) 2005 Ondrej Palkovsky
    33 * All rights reserved.
    44 *
     
    2525 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    27  *
    2827 */
    2928
    30 #include <fpu_context.h>
     29#include <proc/scheduler.h>
     30#include <cpu.h>
     31#include <proc/thread.h>
     32#include <arch.h>
     33#include <arch/context.h>       /* SP_DELTA */
    3134
    32 void fpu_context_save(fpu_context_t *fctx)
     35void before_thread_runs_arch(void)
    3336{
     37        CPU->arch.tss->rsp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
    3438}
    35 
    36 
    37 void fpu_context_restore(fpu_context_t *fctx)
    38 {
    39 }
    40 
    41 
    42 void fpu_lazy_context_save(fpu_context_t *fctx)
    43 {
    44 }
    45 
    46 void fpu_lazy_context_restore(fpu_context_t *fctx)
    47 {
    48 
    49 }
Note: See TracChangeset for help on using the changeset viewer.