Changeset ba18512 in mainline


Ignore:
Timestamp:
2005-08-30T21:33:09Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b524f816
Parents:
fa0dfaf
Message:

Switch order of 'src' and 'dst' arguments in some left-over uses of memcopy.

Cleanup.

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/asm.S

    rfa0dfaf rba18512  
    259259#
    260260# Copy a given number of bytes (3rd argument)
    261 # from the memory location defined by 1st argument
    262 # to the memory location defined by 2nd argument.
     261# from the memory location defined by 2nd argument
     262# to the memory location defined by 1st argument.
    263263# The memory areas cannot overlap.
    264264#
  • arch/ia32/src/drivers/ega.c

    rfa0dfaf rba18512  
    7474                return;
    7575
    76         memcopy((void *)PA2KA(VIDEORAM),(void *)PA2KA(VIDEORAM) + ROW*2, (SCREEN - ROW)*2); //swaped
     76        memcopy((void *)PA2KA(VIDEORAM),(void *)(PA2KA(VIDEORAM) + ROW*2), (SCREEN - ROW)*2); //swaped
    7777        memsetw(PA2KA(VIDEORAM) + (SCREEN - ROW)*2, ROW, 0x0720);
    7878        ega_cursor = ega_cursor - ROW;
  • arch/ia32/src/smp/mps.c

    rfa0dfaf rba18512  
    313313#ifdef MPSCT_VERBOSE
    314314        char buf[7];
    315         memcopy((__address) bus->bus_type, (__address) buf, 6);
     315        memcopy((void *) buf, (void *) bus->bus_type, 6);
    316316        buf[6] = 0;
    317317        printf("bus%d: %s\n", bus->bus_id, buf);
  • include/memstr.h

    rfa0dfaf rba18512  
    3333#include <arch/types.h>
    3434
    35 extern char *  memcopy(void * dst, const void *src, size_t cnt);
     35extern char *memcopy(void * dst, const void *src, size_t cnt);
    3636
    3737extern void memsetw(__address dst, size_t cnt, __u16 x);
     
    4343 * Architecture independent variants.
    4444 */
    45 extern char * _memcopy(void *dst, const void *src, size_t cnt);
     45extern char *_memcopy(void *dst, const void *src, size_t cnt);
    4646extern void _memsetb(__address dst, size_t cnt, __u8 x);
    4747
  • src/Makefile.config

    rfa0dfaf rba18512  
    1 ARCH=ia32
     1#ARCH=ia32
    22#ARCH=mips
    33#ARCH=ia64
     
    3535#TEST_DIR=fpu/fpu1
    3636#TEST_DIR=print/print1
    37 TEST_DIR=thread/thread1
     37#TEST_DIR=thread/thread1
  • src/lib/memstr.c

    rfa0dfaf rba18512  
    4242 *
    4343 */
    44 
    45 char *  _memcopy(void * dst,const void *src, size_t cnt);
    46 char *  _memcopy(void * dst,const void *src, size_t cnt)
     44char *_memcopy(void * dst, const void *src, size_t cnt)
    4745{
    4846        int i;
  • src/main/kinit.c

    rfa0dfaf rba18512  
    132132        if (!a) panic("vm_area_create: vm_text");
    133133        vm_area_map(a, m);
    134         memcopy((__address) utext, PA2KA(a->mapping[0]), utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE);
     134        memcopy(PA2KA(a->mapping[0]), (__address) utext, utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE);
    135135
    136136        /*
  • src/mm/vm.c

    rfa0dfaf rba18512  
    6767                        src_ptl0 = (pte_t *) PA2KA((__address) GET_PTL0_ADDRESS());
    6868                        dst_ptl0 = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC);
    69 //                      memsetb((__address) dst_ptl0, PAGE_SIZE, 0);
    70 //                      memcopy((__address) &src_ptl0[KAS_START_INDEX], (__address) &dst_ptl0[KAS_START_INDEX], KAS_INDICES*sizeof(pte_t));
    7169                        memcopy((void *)PA2KA((__address) dst_ptl0), (void *)GET_PTL0_ADDRESS() , PAGE_SIZE);
    7270                        m->ptl0 = (pte_t *) KA2PA((__address) dst_ptl0);
  • src/proc/scheduler.c

    rfa0dfaf rba18512  
    362362                THREAD = NULL;
    363363        }
    364         printf("*0*");
     364
    365365        THREAD = find_best_thread();
    366         printf("*1*");
    367366       
    368367        spinlock_lock(&THREAD->lock);
Note: See TracChangeset for help on using the changeset viewer.