Changeset fa0dfaf in mainline
- Timestamp:
- 2005-08-30T20:15:50Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba18512
- Parents:
- d0c30f7
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/Makefile.inc
rd0c30f7 rfa0dfaf 19 19 arch/boot/boot.S \ 20 20 arch/boot/memmap.S \ 21 arch/pm.c 21 arch/pm.c \ 22 arch/context.S -
arch/amd64/include/asm.h
rd0c30f7 rfa0dfaf 33 33 #include <config.h> 34 34 35 void asm_delay_loop(__u32 t); 36 35 37 /* TODO: implement the real stuff */ 36 38 static inline __address get_stack_base(void) … … 39 41 } 40 42 43 static inline void cpu_sleep(void) { __asm__("hlt"); }; 44 41 45 #endif -
arch/amd64/include/context.h
rd0c30f7 rfa0dfaf 30 30 #define __amd64_CONTEXT_H__ 31 31 32 #include <arch/types.h> 32 #ifndef __amd64_TYPES_H__ 33 # include <arch/types.h> 34 #endif 33 35 34 #define SP_DELTA 036 #define SP_DELTA 8 35 37 36 38 struct 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; 41 51 } __attribute__ ((packed)); 42 52 -
arch/amd64/include/types.h
rd0c30f7 rfa0dfaf 27 27 */ 28 28 29 #ifndef __ TYPES_H__30 #define __ TYPES_H__29 #ifndef __amd64_TYPES_H__ 30 #define __amd64_TYPES_H__ 31 31 32 32 #define NULL 0 … … 41 41 typedef __u64 __address; 42 42 43 typedef __u32 pri_t; 43 /* Flags of processor (return value of cpu_priority_high()) */ 44 typedef __u64 pri_t; 44 45 45 46 typedef __u64 __native; -
arch/amd64/src/dummy.s
rd0c30f7 rfa0dfaf 30 30 31 31 .global memcopy 32 .global memcpy 32 33 .global cpu_priority_high 33 34 .global cpu_priority_low … … 35 36 .global cpu_priority_restore 36 37 .global memsetb 37 .global context_save38 .global context_restore39 38 .global userspace 40 39 .global before_thread_runs_arch … … 54 53 .global frame_arch_init 55 54 .global dummy 55 .global asm_delay_loop 56 56 57 memcpy: 57 58 memcopy: 58 59 cpu_priority_high: … … 61 62 cpu_priority_read: 62 63 memsetb: 63 context_save: 64 context_restore: 64 asm_delay_loop: 65 65 before_thread_runs_arch: 66 66 userspace: -
src/build.amd64
rd0c30f7 rfa0dfaf 1 1 #! /bin/sh 2 2 3 set -e 4 5 (cd ../arch/amd64/src;make gencontext;./gencontext) 3 6 make all ARCH=amd64
Note:
See TracChangeset
for help on using the changeset viewer.