Changeset fa2d382 in mainline for arch/amd64/src/asm_utils.S


Ignore:
Timestamp:
2006-02-07T09:36:54Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4fdf3cc
Parents:
65640fef
Message:

Doc updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/asm_utils.S

    r65640fef rfa2d382  
    3636#include <arch/pm.h>
    3737#include <arch/context_offset.h>
     38#include <arch/mm/page.h>
    3839       
    3940.text
     
    195196        # Switch to hidden gs   
    196197        swapgs
    197 
    198         # TODO: I would like LEA instead of thes 2 instrs,
    199         # why does not it work???
    200         mov %gs:0, %r10     # We have a stack in r10
    201         addq $0x0ff0, %r10
     198        # %gs:0 now points to pointer to stack page
     199        mov %gs:0, %r10     # We have a ptr to stack page in r10
     200        addq $PAGE_SIZE-16, %r10 # We need some space to store old %sp
    202201       
    203202        movq %rsp, 0(%r10)  # Save old stack pointer to stack
Note: See TracChangeset for help on using the changeset viewer.