Changeset 101 for trunk/Softwares
- Timestamp:
- Jan 15, 2009, 6:19:08 PM (16 years ago)
- Location:
- trunk/Softwares
- Files:
-
- 3 deleted
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Softwares/Common/include/find_one.h
r81 r101 1 1 unsigned int find_first_one (unsigned int val); 2 // unsigned int find_last_one (unsigned int val); -
trunk/Softwares/Common/include/func_io.h
r81 r101 1 1 #include "mapping_memory.h" 2 2 3 void print(int data); 4 void quit (int data); 3 void tty (unsigned char data); 4 void print(char * data); 5 void quit (unsigned int data); 6 void show (unsigned int data); -
trunk/Softwares/Common/include/service_clock.h
r81 r101 1 unsigned int service_clock ();1 // unsigned int service_clock (); -
trunk/Softwares/Common/ldscript/or32.ld
r88 r101 6 6 7 7 /* 8 * Memory Mapping 8 * Memory Mapping : cf ${MORPHEO_TOPLEVEL}/IPs/systemC/shared/mapping_memory.h 9 9 */ 10 10 … … 13 13 iram : ORIGIN = 0x00000000, LENGTH = 0x01000000 14 14 dram : ORIGIN = 0x10000000, LENGTH = 0x10000000 15 dram_unc : ORIGIN = 0x 40000000, LENGTH = 0x0100000015 dram_unc : ORIGIN = 0x80000000, LENGTH = 0x01000000 16 16 } 17 17 … … 20 20 * grows down. 21 21 */ 22 PROVIDE (_stack = 0x52000000 - 4); 23 PROVIDE (__stack = 0x52000000 - 4); 22 PROVIDE (_stack = 0x42000000 - 4); 24 23 PROVIDE (_stack_alloc = 0x00500000 ); 25 24 PROVIDE (_tty = 0xa0000000 ); 25 PROVIDE (_ramlock = 0xb0000000 ); 26 PROVIDE (_sim2os = 0xc0000000 ); 26 27 27 28 SECTIONS -
trunk/Softwares/Common/src/asm/cpu_info.s
r81 r101 10 10 _get_cpu_id : 11 11 l.jr r9 12 l.mfspr r11,r0, 0xF800 /* R11 <- SPR[31][0] */13 12 l.mfspr r11,r0,21 /* R11 <- SPR[0][21] */ 13 14 14 .global _set_cpu_id 15 15 _set_cpu_id : 16 16 l.jr r9 17 l.mtspr r0 ,r3, 0xF800 /* SPR[31][0] <- r3 */17 l.mtspr r0 ,r3,21 /* SPR[0][21] <- r3 */ 18 18 -
trunk/Softwares/Common/src/asm/find_one.s
r81 r101 12 12 l.ff1 r11,r3 13 13 14 /* 14 /* 15 15 .global _find_last_one 16 16 _find_last_one : -
trunk/Softwares/Common/src/asm/thread_info.s
r81 r101 10 10 _get_thread_id : 11 11 l.jr r9 12 l.mfspr r11,r0, 0xF801 /* R11 <- SPR[31][1] */13 12 l.mfspr r11,r0,22 /* R11 <- SPR[0][22] */ 13 14 14 .global _set_thread_id 15 15 _set_thread_id : 16 16 l.jr r9 17 l.mtspr r0 ,r3, 0xF801 /* SPR[31][1] <- r3 */17 l.mtspr r0 ,r3,22 /* SPR[0][22] <- r3 */ 18 18 19 19 .global _get_thread_priority 20 20 _get_thread_priority : 21 21 l.jr r9 22 l.mfspr r11,r0, 0xF802 /* R11 <- SPR[31][2] */22 l.mfspr r11,r0,23 /* R11 <- SPR[0][23] */ 23 23 24 24 .global _set_thread_priority 25 25 _set_thread_priority : 26 26 l.jr r9 27 l.mtspr r0 ,r3, 0xF802 /* SPR[31][2] <- r3 */27 l.mtspr r0 ,r3,23 /* SPR[0][23] <- r3 */ 28 28 -
trunk/Softwares/Common/src/c/func_io.c
r81 r101 2 2 #include "thread_info.h" 3 3 4 void print(intdata)4 void tty (unsigned char data) 5 5 { 6 int *show =(int*)(TTY_BASE + (get_thread_id() << 4) + 8);6 unsigned int * addr =(unsigned int*)(TTY_BASE + (get_thread_id() << 4) + 0); 7 7 8 *( show) = data;8 *(addr) = data; 9 9 } 10 10 11 void quit (intdata)11 void print (char * data) 12 12 { 13 int *stop =(int*)(TTY_BASE + (get_thread_id() << 4) + 4);13 unsigned int * addr =(unsigned int*)(TTY_BASE + (get_thread_id() << 4) + 0); 14 14 15 *(stop) = data; 15 while ((*data) != '\0') 16 { 17 *(addr) = (*data); 18 data++; 19 } 16 20 } 21 22 void show (unsigned int data) 23 { 24 unsigned int * addr =(unsigned int*)(TTY_BASE + (get_thread_id() << 4) + 8); 25 26 *(addr) = data; 27 } 28 29 void quit (unsigned int data) 30 { 31 unsigned int * addr = (unsigned int*)(TTY_BASE + (get_thread_id() << 4) + 4); 32 33 *(addr) = data; 34 } -
trunk/Softwares/Common/src/c/service_clock.c
r81 r101 1 #include <time.h> 2 #include <errno.h> 3 #include <sys/lock.h> 4 #include "mapping_memory.h" 5 #include "sim2os.h" 6 #include "service_clock.h" 1 /* #include <time.h> */ 2 /* #include <errno.h> */ 3 /* #include <sys/lock.h> */ 4 /* #include "mapping_memory.h" */ 5 /* #include "sim2os.h" */ 6 /* #include "service_clock.h" */ 7 7 8 unsigned int service_clock () 9 { 10 unsigned int * addr = (unsigned int *)(SIM2OS_BASE); 11 unsigned int result = -1; 8 /* unsigned int service_clock () */ 9 /* { */ 10 /* unsigned int * addr = (unsigned int *)(SIM2OS_BASE); */ 11 /* unsigned int result = -1; */ 12 12 13 __lock_init (service_lock); 13 /* __lock_init (service_lock); */ 14 14 15 __lock_acquire (service_lock); 15 /* __lock_acquire (service_lock); */ 16 16 17 *(addr+0) = (unsigned int)SERVICE_CLOCK; 17 /* *(addr+0) = (unsigned int)SERVICE_CLOCK; */ 18 18 19 // memory synchronisation 20 // (else read (with an address that depend not of store address) can be lunch before a store) 21 asm("l.msync;"); 19 /* // memory synchronisation */ 20 /* // (else read (with an address that depend not of store address) can be lunch before a store) */ 21 /* asm("l.msync;"); */ 22 22 23 result = (clock_t) *(addr+1); 23 /* result = (clock_t) *(addr+1); */ 24 24 25 if (result == (clock_t)-1) 26 errno = (int) *(addr+2); 25 /* if (result == (clock_t)-1) */ 26 /* errno = (int) *(addr+2); */ 27 27 28 __lock_release (service_lock); 28 /* __lock_release (service_lock); */ 29 29 30 return result; 31 } 30 /* return result; */ 31 /* } */ -
trunk/Softwares/Makefile.Software
r100 r101 20 20 21 21 DIR_COMMON = $(MORPHEO_TOPLEVEL)/Softwares/Common 22 DIR_COMMON_C = $(DIR_ GLOBAL)/src/c23 DIR_COMMON_ASM = $(DIR_ GLOBAL)/src/asm24 DIR_COMMON_SYS = $(DIR_ GLOBAL)/src/sys25 DIR_COMMON_INC = $(DIR_ GLOBAL)/include22 DIR_COMMON_C = $(DIR_COMMON)/src/c 23 DIR_COMMON_ASM = $(DIR_COMMON)/src/asm 24 DIR_COMMON_SYS = $(DIR_COMMON)/src/sys 25 DIR_COMMON_INC = $(DIR_COMMON)/include 26 26 27 OBJECTS_COMMON = $(patsubst $(DIR_COMMON_ ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_ASM)/*.s)) \28 $(patsubst $(DIR_COMMON_ SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_SYS)/*.s)) \27 OBJECTS_COMMON = $(patsubst $(DIR_COMMON_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_SYS)/*.s)) \ 28 $(patsubst $(DIR_COMMON_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_ASM)/*.s)) \ 29 29 $(patsubst $(DIR_COMMON_C)/%.c,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_C)/*.c)) 30 30 31 31 32 32 #-----[ To the compilation ]------------------------------------------------------ 33 OPTIMIZE = -O3 - fomit-frame-pointer -fdelayed-branch -mror -mcmov -msext -mhard-mul -msoft-div -msoft-float33 OPTIMIZE = -O3 -std=c99 -fomit-frame-pointer -fdelayed-branch -mror -mcmov -msext -mhard-mul -msoft-div -msoft-float 34 34 #Option : 35 35 # -fomit-frame-pointer : n'utilise pas le pointeur de frame … … 64 64 .PRECIOUS : $(DIR_BIN)/%.x.txt $(DIR_BIN)/%.x $(DIR_OBJ)/%.o 65 65 66 vpath %.h $(DIR_INC) 67 vpath %.c $(DIR_C) 68 vpath %.s $(DIR_ASM):$(DIR_SYS) 66 vpath %.h $(DIR_INC):$(DIR_COMMON_INC) 67 vpath %.c $(DIR_C):$(DIR_COMMON_C) 68 vpath %.s $(DIR_ASM):$(DIR_SYS):$(DIR_COMMON_ASM):$(DIR_COMMON_SYS) 69 69 vpath %.o $(DIR_OBJ) 70 70 vpath %.x $(DIR_BIN) … … 82 82 $(OR32_NM) $(OR32_NM_OPT) $^ > $@.nm; \ 83 83 $(ECHO) "Display info : $*.x.txt"; \ 84 $(OR32_OBJDUMP) $(OR32_OBJDUMP_OPT) $ ^> $@.txt;84 $(OR32_OBJDUMP) $(OR32_OBJDUMP_OPT) $@ > $@.txt; 85 85 86 86 $(DIR_OBJ)/%.o : %.s -
trunk/Softwares/Test/Test_000/src/sys/crt0.s
r88 r101 25 25 l.movhi r1, hi(_tty) 26 26 l.ori r1, r1, lo(_tty) 27 l.sw 4(r1), r 1/* stop address */27 l.sw 4(r1), r0 /* stop address */ 28 28 l.nop 29 29 l.nop -
trunk/Softwares/Test/Test_001/src/sys/crt0.s
r88 r101 19 19 l.movhi r1, hi(_tty) 20 20 l.ori r1, r1, lo(_tty) 21 l.sw 4(r1), r 1/* stop address */21 l.sw 4(r1), r0 /* stop address */ 22 22 l.nop 23 23 l.nop -
trunk/Softwares/Test/Test_002/src/sys/crt0.s
r88 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_003/src/sys/crt0.s
r88 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_004/src/sys/crt0.s
r88 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 42 45 l.movhi r1, hi(_tty) 43 46 l.ori r1, r1, lo(_tty) 44 l.sw 4(r1), r 1/* stop address */47 l.sw 4(r1), r0 /* stop address */ 45 48 -
trunk/Softwares/Test/Test_005/src/sys/crt0.s
r88 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_006/src/sys/crt0.s
r98 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_007/src/sys/crt0.s
r98 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_008/src/sys/crt0.s
r98 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_009/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_010/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_011/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_012/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_013/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_014/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_015/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 … … 34 37 _start: 35 38 36 l.movhi r2, hi(0x000000 10) /* count max */37 l.ori r2, r2, lo(0x000000 10)39 l.movhi r2, hi(0x00000002) /* count max */ 40 l.ori r2, r2, lo(0x00000002) 38 41 39 42 /**********/ … … 46 49 /* Test result */ 47 50 _test_1_loop : 48 l.sf eqr1, r249 l.bf _test_1_ end51 l.sfne r1, r2 52 l.bf _test_1_loop 50 53 l.addi r1, r1, 1 51 54 _test_1_end : … … 60 63 /* Test result */ 61 64 _test_2_loop : 62 l.sf ner1, r263 l.bf _test_2_ loop65 l.sfeq r1, r2 66 l.bf _test_2_end 64 67 l.addi r1, r1, 1 68 l.j _test_2_loop 69 l.nop 65 70 _test_2_end : 66 71 -
trunk/Softwares/Test/Test_016/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 … … 46 49 /* Test result */ 47 50 _test_1_loop : 48 l.sf ner1, r249 l.bnf _test_1_ end51 l.sfeq r1, r2 52 l.bnf _test_1_loop 50 53 l.addi r1, r1, 1 51 54 _test_1_end : … … 60 63 /* Test result */ 61 64 _test_2_loop : 62 l.sf eqr1, r263 l.bnf _test_2_ loop65 l.sfne r1, r2 66 l.bnf _test_2_end 64 67 l.addi r1, r1, 1 68 l.j _test_2_loop 69 l.nop 65 70 _test_2_end : 66 71 -
trunk/Softwares/Test/Test_017/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_018/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_019/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_020/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_021/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_022/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_023/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_024/src/sys/crt0.s
r100 r101 1 1 /* 2 * Test_02 42 * Test_025 3 3 * 4 4 * end_ko : infinite_loop 5 5 * end_ok : Write in R1 the stop address and stop an data 6 6 * The store in the destination of an jump 7 * start : Test l.jr 7 * start : Test l.jr (no return procedure) 8 8 */ 9 9 … … 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 -
trunk/Softwares/Test/Test_025/src/sys/crt0.s
r100 r101 1 1 /* 2 * Test_02 32 * Test_025 3 3 * 4 4 * end_ko : infinite_loop 5 5 * end_ok : Write in R1 the stop address and stop an data 6 6 * The store in the destination of an jump 7 * start : Test l.j alr7 * start : Test l.jr (return procedure) 8 8 */ 9 9 … … 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33
Note: See TracChangeset
for help on using the changeset viewer.