Changeset 9756131 in mainline
- Timestamp:
- 2005-08-31T10:00:14Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b9e97fb
- Parents:
- 3de9e5e
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/dummy.s
r3de9e5e r9756131 51 51 .global dummy 52 52 .global asm_delay_loop 53 .global memcpy 53 54 54 55 cpu_priority_high: … … 74 75 page_arch_init: 75 76 frame_arch_init: 77 memcpy: 76 78 77 79 dummy: -
arch/amd64/src/supplib.c
r3de9e5e r9756131 31 31 /* TODO: Rewrite to assembler */ 32 32 33 char *memcpy(void *dst, const void *src, size_t cnt)34 {35 _memcopy(dst, src, cnt);36 }37 38 char *memcopy(void * dst, const void *src, size_t cnt)39 {40 _memcopy(dst, src, cnt);41 }42 43 33 void memsetw(__address dst, size_t cnt, __u16 x) 44 34 { -
arch/ia32/src/asm.S
r3de9e5e r9756131 44 44 .global outw 45 45 .global outl 46 .global memc opy46 .global memcpy 47 47 .global memsetb 48 48 .global memsetw … … 266 266 DST=8 267 267 CNT=16 268 memc opy:268 memcpy: 269 269 push %ebp 270 270 movl %esp,%ebp -
arch/ia32/src/drivers/ega.c
r3de9e5e r9756131 74 74 return; 75 75 76 memc opy((void *)PA2KA(VIDEORAM),(void *)(PA2KA(VIDEORAM) + ROW*2), (SCREEN - ROW)*2); //swaped76 memcpy((void *)PA2KA(VIDEORAM), (void *)(PA2KA(VIDEORAM) + ROW*2), (SCREEN - ROW)*2); 77 77 memsetw(PA2KA(VIDEORAM) + (SCREEN - ROW)*2, ROW, 0x0720); 78 78 ega_cursor = ega_cursor - ROW; -
arch/ia32/src/mm/page.c
r3de9e5e r9756131 73 73 74 74 dba = frame_alloc(FRAME_KA | FRAME_PANIC); 75 memc opy((void *)dba,(void *)bootstrap_dba , PAGE_SIZE); //swaped75 memcpy((void *)dba, (void *)bootstrap_dba , PAGE_SIZE); 76 76 write_cr3(KA2PA(dba)); 77 77 } -
arch/ia32/src/smp/mps.c
r3de9e5e r9756131 313 313 #ifdef MPSCT_VERBOSE 314 314 char buf[7]; 315 memc opy((void *) buf, (void *) bus->bus_type, 6);315 memcpy((void *) buf, (void *) bus->bus_type, 6); 316 316 buf[6] = 0; 317 317 printf("bus%d: %s\n", bus->bus_id, buf); -
arch/ia32/src/smp/smp.c
r3de9e5e r9756131 140 140 panic("couldn't allocate memory for GDT\n"); 141 141 142 memc opy(gdt_new, gdt, GDT_ITEMS*sizeof(struct descriptor)); // swaped142 memcpy(gdt_new, gdt, GDT_ITEMS*sizeof(struct descriptor)); 143 143 memsetb((__address)(&gdt_new[TSS_DES]), sizeof(struct descriptor), 0); 144 144 gdtr.base = KA2PA((__address) gdt_new); -
arch/ia64/src/asm.S
r3de9e5e r9756131 31 31 .global memcpy 32 32 memcpy: 33 /* 34 * Switch the role of first two arguments 35 */ 36 sub r33 = r33, r32 ;; 37 add r32 = r32, r33 ;; 38 sub r33 = r32, r33 39 40 br _memcopy 41 42 .global memcopy 43 memcopy: 44 br _memcopy 33 br _memcpy 45 34 46 35 .global memsetb -
arch/mips/src/asm.s
r3de9e5e r9756131 151 151 nop 152 152 153 .global memc opy154 memc opy:155 j _memc opy153 .global memcpy 154 memcpy: 155 j _memcpy 156 156 nop 157 157 -
arch/ppc/src/dummy.s
r3de9e5e r9756131 30 30 31 31 .global memcpy 32 .global memcopy33 32 .global cpu_priority_read 34 33 .global memsetb … … 47 46 48 47 memcpy: 49 memcopy:50 48 cpu_priority_read: 51 49 memsetb: -
include/memstr.h
r3de9e5e r9756131 33 33 #include <arch/types.h> 34 34 35 extern char *memcpy(void * dst, const void *src, size_t cnt); 36 extern char *memcopy(void * dst, const void *src, size_t cnt); 35 #define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt)); 37 36 38 37 extern void memsetw(__address dst, size_t cnt, __u16 x); … … 44 43 * Architecture independent variants. 45 44 */ 46 extern char *_memc opy(void *dst, const void *src, size_t cnt);45 extern char *_memcpy(void *dst, const void *src, size_t cnt); 47 46 extern void _memsetb(__address dst, size_t cnt, __u8 x); 48 47 extern void _memsetw(__address dst, size_t cnt, __u16 x); -
src/lib/memstr.c
r3de9e5e r9756131 42 42 * 43 43 */ 44 char *_memc opy(void * dst, const void *src, size_t cnt)44 char *_memcpy(void * dst, const void *src, size_t cnt) 45 45 { 46 46 int i; … … 51 51 return (char *)src; 52 52 } 53 54 53 55 54 /** Fill block of memory -
src/main/kinit.c
r3de9e5e r9756131 132 132 if (!a) panic("vm_area_create: vm_text"); 133 133 vm_area_map(a, m); 134 memc opy(PA2KA(a->mapping[0]), (__address) utext, utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE);134 memcpy((void *) PA2KA(a->mapping[0]), (void *) utext, utext_size < PAGE_SIZE ? utext_size : PAGE_SIZE); 135 135 136 136 /* -
src/mm/vm.c
r3de9e5e r9756131 67 67 src_ptl0 = (pte_t *) PA2KA((__address) GET_PTL0_ADDRESS()); 68 68 dst_ptl0 = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC); 69 memc opy((void *)PA2KA((__address) dst_ptl0), (void *)GET_PTL0_ADDRESS() , PAGE_SIZE);69 memcpy((void *)PA2KA((__address) dst_ptl0), (void *)GET_PTL0_ADDRESS() , PAGE_SIZE); 70 70 m->ptl0 = (pte_t *) KA2PA((__address) dst_ptl0); 71 71 } -
test/synch/rwlock4/test.c
r3de9e5e r9756131 34 34 #include <arch/types.h> 35 35 #include <arch/context.h> 36 #include <context.h> 36 37 #include <panic.h> 37 38
Note:
See TracChangeset
for help on using the changeset viewer.