Changeset fa2d382 in mainline for arch/amd64/src/asm_utils.S
- Timestamp:
- 2006-02-07T09:36:54Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4fdf3cc
- Parents:
- 65640fef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/asm_utils.S
r65640fef rfa2d382 36 36 #include <arch/pm.h> 37 37 #include <arch/context_offset.h> 38 #include <arch/mm/page.h> 38 39 39 40 .text … … 195 196 # Switch to hidden gs 196 197 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 202 201 203 202 movq %rsp, 0(%r10) # Save old stack pointer to stack
Note:
See TracChangeset
for help on using the changeset viewer.