Changeset 4928165 in mainline for kernel/arch/amd64/src/smp/ap.S


Ignore:
Timestamp:
2016-05-08T21:18:45Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0637ddb
Parents:
a0d9abcd
Message:

Use symbolic constants instead of magic numbers

  • Use PA2KA(0) instead of 0x80000000
  • Use CONTEXT_OFFSET_SP instead of silently assuming that SP is at offset 0
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/smp/ap.S

    ra0d9abcd r4928165  
    3939#include <arch/cpu.h>
    4040#include <arch/cpuid.h>
     41#include <arch/context_struct.h>
    4142
    4243.section K_TEXT_START, "ax"
     
    9899start64:
    99100        movabsq $ctx, %rsp
    100         movq (%rsp), %rsp
     101        movq CONTEXT_OFFSET_SP(%rsp), %rsp
    101102       
    102103        pushq $0
Note: See TracChangeset for help on using the changeset viewer.