/SPARTAN/trunk/arch/amd64/include/asm.h |
---|
32,6 → 32,8 |
#include <arch/types.h> |
#include <config.h> |
void asm_delay_loop(__u32 t); |
/* TODO: implement the real stuff */ |
static inline __address get_stack_base(void) |
{ |
38,4 → 40,6 |
return NULL; |
} |
static inline void cpu_sleep(void) { __asm__("hlt"); }; |
#endif |
/SPARTAN/trunk/arch/amd64/include/context.h |
---|
29,15 → 29,25 |
#ifndef __amd64_CONTEXT_H__ |
#define __amd64_CONTEXT_H__ |
#include <arch/types.h> |
#ifndef __amd64_TYPES_H__ |
# include <arch/types.h> |
#endif |
#define SP_DELTA 0 |
#define SP_DELTA 8 |
struct context { |
__u64 sp; |
__u64 pc; |
pri_t pri; |
__u64 sp; |
__u64 pc; |
__u64 rbx; |
__u64 rbp; |
__u64 r12; |
__u64 r13; |
__u64 r14; |
__u64 r15; |
pri_t pri; |
} __attribute__ ((packed)); |
#endif |
/SPARTAN/trunk/arch/amd64/include/types.h |
---|
26,8 → 26,8 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
#ifndef __TYPES_H__ |
#define __TYPES_H__ |
#ifndef __amd64_TYPES_H__ |
#define __amd64_TYPES_H__ |
#define NULL 0 |
40,7 → 40,8 |
typedef __u64 __address; |
typedef __u32 pri_t; |
/* Flags of processor (return value of cpu_priority_high()) */ |
typedef __u64 pri_t; |
typedef __u64 __native; |