Changeset fa0dfaf in mainline for arch/amd64/include


Ignore:
Timestamp:
2005-08-30T20:15:50Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba18512
Parents:
d0c30f7
Message:

Context-save/restore in AMD64

Location:
arch/amd64/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/include/asm.h

    rd0c30f7 rfa0dfaf  
    3333#include <config.h>
    3434
     35void asm_delay_loop(__u32 t);
     36
    3537/* TODO: implement the real stuff */
    3638static inline __address get_stack_base(void)
     
    3941}
    4042
     43static inline void cpu_sleep(void) { __asm__("hlt"); };
     44
    4145#endif
  • arch/amd64/include/context.h

    rd0c30f7 rfa0dfaf  
    3030#define __amd64_CONTEXT_H__
    3131
    32 #include <arch/types.h>
     32#ifndef __amd64_TYPES_H__
     33#  include <arch/types.h>
     34#endif
    3335
    34 #define SP_DELTA        0
     36#define SP_DELTA     8
    3537
    3638struct context {
    37         __u64 sp;
    38         __u64 pc;
    39        
    40         pri_t pri;
     39    __u64 sp;
     40    __u64 pc;
     41   
     42    __u64 rbx;
     43    __u64 rbp;
     44
     45    __u64 r12;
     46    __u64 r13;
     47    __u64 r14;
     48    __u64 r15;
     49
     50    pri_t pri;
    4151} __attribute__ ((packed));
    4252
  • arch/amd64/include/types.h

    rd0c30f7 rfa0dfaf  
    2727 */
    2828
    29 #ifndef __TYPES_H__
    30 #define __TYPES_H__
     29#ifndef __amd64_TYPES_H__
     30#define __amd64_TYPES_H__
    3131
    3232#define NULL 0
     
    4141typedef __u64 __address;
    4242
    43 typedef __u32 pri_t;
     43/* Flags of processor (return value of cpu_priority_high()) */
     44typedef __u64 pri_t;
    4445
    4546typedef __u64 __native;
Note: See TracChangeset for help on using the changeset viewer.