2 moved from nrv2v.c and some lines from crt0.S
3 2006/05/02 - stepan: move nrv2b to an extra file.
10 static void copy_and_run(unsigned cpu_reset)
13 unsigned long dst_len;
14 unsigned long ilen = 0, olen = 0, last_m_off = 1;
18 print_debug("Copying LinuxBIOS to ram.\r\n");
26 : "=a" (src), "=b" (dst), "=c" (dst_len)
28 memcpy(src, dst, dst_len);
32 "leal 4+_liseg, %0\n\t"
34 : "=a" (src) , "=b" (dst)
38 printk_debug("src=%08x\r\n",src);
39 printk_debug("dst=%08x\r\n",dst);
41 print_debug("src="); print_debug_hex32(src); print_debug("\r\n");
42 print_debug("dst="); print_debug_hex32(dst); print_debug("\r\n");
45 // dump_mem(src, src+0x100);
50 // dump_mem(dst, dst+0x100);
52 printk_debug("linxbios_ram.bin length = %08x\r\n", olen);
54 print_debug("linxbios_ram.bin length = "); print_debug_hex32(olen); print_debug("\r\n");
56 print_debug("Jumping to LinuxBIOS.\r\n");
60 "movl $0xffffffff, %ebp\n\t"
71 "leal _iseg, %edi\n\t"