2 moved from nrv2v.c and some lines from crt0.S
3 2006/05/02 - stepan: move nrv2b to an extra file.
10 static inline void print_debug_cp_run(const char *strval, uint32_t val)
13 printk_debug("%s%08x\r\n", strval, val);
15 print_debug(strval); print_debug_hex32(val); print_debug("\r\n");
19 static void copy_and_run(void)
22 unsigned long ilen = 0, olen = 0, last_m_off = 1;
26 print_debug("Copying LinuxBIOS to ram.\r\n");
34 : "=a" (src), "=b" (dst), "=c" (olen)
36 memcpy(dst, src, olen);
42 : "=a" (src) , "=b" (dst)
45 print_debug_cp_run("src=",(uint32_t)src);
46 print_debug_cp_run("dst=",(uint32_t)dst);
51 print_debug_cp_run("linxbios_ram.bin length = ", olen);
53 print_debug("Jumping to LinuxBIOS.\r\n");
56 "xorl %ebp, %ebp\n\t" /* cpu_reset for hardwaremain dummy */
58 "leal _iseg, %edi\n\t"