Changeset fa2d382 in mainline
- 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
- Location:
- arch/amd64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/mm/page.h
r65640fef rfa2d382 30 30 #define __amd64_PAGE_H__ 31 31 32 #include <arch/mm/frame.h> 33 32 34 #ifndef __ASM__ 33 35 # include <mm/page.h> 34 # include <arch/mm/frame.h>35 36 # include <arch/types.h> 36 37 #endif -
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.