Changeset 7397c73 in mainline


Ignore:
Timestamp:
2008-03-15T09:09:15Z (17 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1aede82
Parents:
d2fa31f7
Message:

Context.s renamed to context.S for ia32 and fixed links for ia32xen.
Added asm macros for context save/restore and offset definitions.

Location:
kernel/arch
Files:
2 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/context.h

    rd2fa31f7 r7397c73  
    3636#define KERN_amd64_CONTEXT_H_
    3737
     38#ifdef KERNEL
     39
    3840#include <arch/types.h>
    3941
     
    4345 */
    4446#define SP_DELTA     16
     47
     48#endif /* KERNEL */
    4549
    4650/* We include only registers that must be preserved
  • kernel/arch/amd64/include/context_offset.h

    rd2fa31f7 r7397c73  
    4040#define OFFSET_IPL 0x40
    4141
     42#ifdef __ASM__
     43
     44# ctx: address of the structure with saved context
     45# pc: return address
     46.macro CONTEXT_SAVE_ARCH_CORE ctx:req pc:req
     47.endm
     48
     49# ctx: address of the structure with saved context
     50.macro CONTEXT_RESTORE_ARCH_CORE ctx:req pc:req
     51.endm
     52
    4253#endif
     54
     55#endif
  • kernel/arch/ia32/Makefile.inc

    rd2fa31f7 r7397c73  
    121121
    122122ARCH_SOURCES = \
    123         arch/$(ARCH)/src/context.s \
     123        arch/$(ARCH)/src/context.S \
    124124        arch/$(ARCH)/src/debug/panic.s \
    125125        arch/$(ARCH)/src/delay.s \
  • kernel/arch/ia32/include/context.h

    rd2fa31f7 r7397c73  
    3636#define KERN_ia32_CONTEXT_H_
    3737
     38#ifdef KERNEL
    3839#include <arch/types.h>
    3940
     
    4748 */
    4849#define SP_DELTA        (8 + STACK_ITEM_SIZE)
     50
     51#endif /* KERNEL */
    4952
    5053/*
  • kernel/arch/ia32xen/Makefile.inc

    rd2fa31f7 r7397c73  
    112112
    113113ARCH_SOURCES = \
    114         arch/$(ARCH)/src/context.s \
     114        arch/$(ARCH)/src/context.S \
    115115        arch/$(ARCH)/src/debug/panic.s \
    116116        arch/$(ARCH)/src/delay.s \
Note: See TracChangeset for help on using the changeset viewer.