- Timestamp:
- 2005-08-31T10:00:14Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b9e97fb
- Parents:
- 3de9e5e
- Location:
- arch
- Files:
-
- 10 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:
Note:
See TracChangeset
for help on using the changeset viewer.