From: Lawrence S. <ljs...@us...> - 2013-05-29 16:48:55
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A serial program loader for the Dreamcast.". The branch, master has been updated via 21fb648175fa4b4146db2d8568a31e8f7fc0eb16 (commit) from 91bb4e650355021e9ca7466680c8da2719b6782f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 21fb648175fa4b4146db2d8568a31e8f7fc0eb16 Author: Lawrence Sebald <ljs...@us...> Date: Wed May 29 12:48:34 2013 -0400 Remove a couple of unneeded files that I missed last commit... ----------------------------------------------------------------------- Summary of changes: target-src/1st_read/crt0.S | 99 ------------------------------- target-src/1st_read/memcmp.c | 105 --------------------------------- target-src/1st_read/memmove.c | 128 ----------------------------------------- 3 files changed, 0 insertions(+), 332 deletions(-) delete mode 100644 target-src/1st_read/crt0.S delete mode 100644 target-src/1st_read/memcmp.c delete mode 100644 target-src/1st_read/memmove.c diff --git a/target-src/1st_read/crt0.S b/target-src/1st_read/crt0.S deleted file mode 100644 index 1af82cc..0000000 --- a/target-src/1st_read/crt0.S +++ /dev/null @@ -1,99 +0,0 @@ - .section .text - .global start - .global _atexit -start: - mov.l setup_cache_k,r0 - mov.l p2_mask,r1 - or r1,r0 - jmp @r0 - nop -setup_cache: - mov.l ccr_addr,r0 - mov.w ccr_data,r1 - mov.l r1,@r0 - mov.l start_2_k,r0 - nop - nop - nop - nop - nop - nop - nop - jmp @r0 - nop -start_2: - mov.l old_stack_k,r14 - mov.l r15,@r14 - mov.l old_pr_k,r14 - sts pr,r15 - mov.l r15,@r14 - mov.l stack_k,r15 - - ! zero out bss - mov.l edata_k,r0 - mov.l end_k,r1 - mov #0,r2 -start_l: - mov.l r2,@r0 - add #4,r0 - cmp/ge r0,r1 - bt start_l - - mov.l set_fpscr_k, r1 - jsr @r1 - mov #0,r4 - lds r3,fpscr - - ! call the mainline - mov.l main_k,r0 - jsr @r0 - nop - - mov.l old_pr_k,r14 - mov.l @r14,r15 - lds r15,pr - mov.l old_stack_k,r14 - mov.l @r14,r15 - -_atexit: - rts - nop - - .align 4 -set_fpscr_k: - .long ___set_fpscr -stack_k: - .long _stack -edata_k: - .long _edata -end_k: - .long _end -main_k: - .long _main -old_stack_k: - .long _old_stack -old_pr_k: - .long _old_pr -_old_stack: - .long 0 -_old_pr: - .long 0 -setup_cache_k: - .long setup_cache -start_2_k: - .long start_2 -p2_mask: - .long 0xa0000000 -ccr_addr: - .long 0xff00001c -ccr_data: - .word 0x090b - - .align 4 - -#ifdef __ELF__ - .section .stack,"aw" -#else - .section .stack -#endif - diff --git a/target-src/1st_read/memcmp.c b/target-src/1st_read/memcmp.c deleted file mode 100644 index 40b803d..0000000 --- a/target-src/1st_read/memcmp.c +++ /dev/null @@ -1,105 +0,0 @@ -/* -FUNCTION - <<memcmp>>---compare two memory areas - -INDEX - memcmp - -ANSI_SYNOPSIS - #include <string.h> - int memcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>); - -TRAD_SYNOPSIS - #include <string.h> - int memcmp(<[s1]>, <[s2]>, <[n]>) - void *<[s1]>; - void *<[s2]>; - size_t <[n]>; - -DESCRIPTION - This function compares not more than <[n]> characters of the - object pointed to by <[s1]> with the object pointed to by <[s2]>. - - -RETURNS - The function returns an integer greater than, equal to or - less than zero according to whether the object pointed to by - <[s1]> is greater than, equal to or less than the object - pointed to by <[s2]>. - -PORTABILITY -<<memcmp>> is ANSI C. - -<<memcmp>> requires no supporting OS subroutines. - -QUICKREF - memcmp ansi pure -*/ - -#include <string.h> - - -/* Nonzero if either X or Y is not aligned on a "long" boundary. */ -#define UNALIGNED(X, Y) \ - (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1))) - -/* How many bytes are copied each iteration of the word copy loop. */ -#define LBLOCKSIZE (sizeof (long)) - -/* Threshhold for punting to the byte copier. */ -#define TOO_SMALL(LEN) ((LEN) < LBLOCKSIZE) - -int -_DEFUN(memcmp, (m1, m2, n), - _CONST _PTR m1 _AND _CONST _PTR m2 _AND size_t n) -{ -#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) - unsigned char *s1 = (unsigned char *) m1; - unsigned char *s2 = (unsigned char *) m2; - - while (n--) { - if (*s1 != *s2) { - return *s1 - *s2; - } - s1++; - s2++; - } - return 0; -#else - unsigned char *s1 = (unsigned char *) m1; - unsigned char *s2 = (unsigned char *) m2; - unsigned long *a1; - unsigned long *a2; - - /* If the size is too small, or either pointer is unaligned, - then we punt to the byte compare loop. Hopefully this will - not turn up in inner loops. */ - if (!TOO_SMALL(n) && !UNALIGNED(s1, s2)) { - /* Otherwise, load and compare the blocks of memory one - word at a time. */ - a1 = (unsigned long *) s1; - a2 = (unsigned long *) s2; - while (n >= LBLOCKSIZE) { - if (*a1 != *a2) - break; - a1++; - a2++; - n -= LBLOCKSIZE; - } - - /* check m mod LBLOCKSIZE remaining characters */ - - s1 = (char *) a1; - s2 = (char *) a2; - } - - while (n--) { - if (*s1 != *s2) - return *s1 - *s2; - s1++; - s2++; - } - - return 0; -#endif /* not PREFER_SIZE_OVER_SPEED */ -} diff --git a/target-src/1st_read/memmove.c b/target-src/1st_read/memmove.c deleted file mode 100644 index bb4fbf2..0000000 --- a/target-src/1st_read/memmove.c +++ /dev/null @@ -1,128 +0,0 @@ -/* -FUNCTION - <<memmove>>---move possibly overlapping memory - -INDEX - memmove - -ANSI_SYNOPSIS - #include <string.h> - void *memmove(void *<[dst]>, const void *<[src]>, size_t <[length]>); - -TRAD_SYNOPSIS - #include <string.h> - void *memmove(<[dst]>, <[src]>, <[length]>) - void *<[dst]>; - void *<[src]>; - size_t <[length]>; - -DESCRIPTION - This function moves <[length]> characters from the block of - memory starting at <<*<[src]>>> to the memory starting at - <<*<[dst]>>>. <<memmove>> reproduces the characters correctly - at <<*<[dst]>>> even if the two areas overlap. - - -RETURNS - The function returns <[dst]> as passed. - -PORTABILITY -<<memmove>> is ANSI C. - -<<memmove>> requires no supporting OS subroutines. - -QUICKREF - memmove ansi pure -*/ - -#include <string.h> -#include <_ansi.h> -#include <stddef.h> -#include <limits.h> - -/* Nonzero if either X or Y is not aligned on a "long" boundary. */ -#define UNALIGNED(X, Y) \ - (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1))) - -/* How many bytes are copied each iteration of the 4X unrolled loop. */ -#define BIGBLOCKSIZE (sizeof (long) << 2) - -/* How many bytes are copied each iteration of the word copy loop. */ -#define LITTLEBLOCKSIZE (sizeof (long)) - -/* Threshhold for punting to the byte copier. */ -#define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE) - -/*SUPPRESS 20*/ -_PTR -_DEFUN(memmove, (dst_void, src_void, length), - _PTR dst_void _AND _CONST _PTR src_void _AND size_t length) -{ -#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) - char *dst = dst_void; - _CONST char *src = src_void; - - if (src < dst && dst < src + length) { - /* Have to copy backwards */ - src += length; - dst += length; - while (length--) { - *--dst = *--src; - } - } else { - while (length--) { - *dst++ = *src++; - } - } - - return dst_void; -#else - char *dst = dst_void; - _CONST char *src = src_void; - long *aligned_dst; - _CONST long *aligned_src; - int len = length; - - if (src < dst && dst < src + len) { - /* Destructive overlap...have to copy backwards */ - src += len; - dst += len; - while (len--) { - *--dst = *--src; - } - } else { - /* Use optimizing algorithm for a non-destructive copy to closely - match memcpy. If the size is small or either SRC or DST is unaligned, - then punt into the byte copy loop. This should be rare. */ - if (!TOO_SMALL(len) && !UNALIGNED(src, dst)) { - aligned_dst = (long *) dst; - aligned_src = (long *) src; - - /* Copy 4X long words at a time if possible. */ - while (len >= BIGBLOCKSIZE) { - *aligned_dst++ = *aligned_src++; - *aligned_dst++ = *aligned_src++; - *aligned_dst++ = *aligned_src++; - *aligned_dst++ = *aligned_src++; - len -= BIGBLOCKSIZE; - } - - /* Copy one long word at a time if possible. */ - while (len >= LITTLEBLOCKSIZE) { - *aligned_dst++ = *aligned_src++; - len -= LITTLEBLOCKSIZE; - } - - /* Pick up any residual with a byte copier. */ - dst = (char *) aligned_dst; - src = (char *) aligned_src; - } - - while (len--) { - *dst++ = *src++; - } - } - - return dst_void; -#endif /* not PREFER_SIZE_OVER_SPEED */ -} hooks/post-receive -- A serial program loader for the Dreamcast. |