2 moved from nrv2v.c and some lines from crt0.S
3 2006/05/02 - stepan: move nrv2b to an extra file.
12 static void copy_and_run(unsigned cpu_reset)
15 unsigned long dst_len;
16 unsigned long ilen, olen;
18 print_debug("Copying LinuxBIOS to RAM.\r\n");
26 : "=a" (src), "=b" (dst), "=c" (dst_len)
28 memcpy(src, dst, dst_len);
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);
47 olen = unrv2b(src, dst, &ilen);
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"