1 /* ARM specific boot_info */
7 EXTENSION class Boot_info
10 static void set_kip(Kip *kip);
14 //---------------------------------------------------------------------------
18 #include <cstdio> // for debug printf's
20 static Kip *boot_info_kip;
23 void Boot_info::set_kip(Kip *kip)
34 extern "C" char _etext, _sstack, _stack, _edata, _end;
37 void Boot_info::init()
40 // Dependent on how we've been booted, the BSS might not have been
41 // cleaned out. Do this now. This is safe because we made sure in
42 // crt0.S that our stack is not in the BSS.
43 // memset(&_edata, 0, &_sstack - &_edata);
44 // memset(&_stack, 0, &_end - &_stack);
46 // We save the checksum for read-only data to be able to compare it against
47 // the kernel image later (in jdb::enter_kdebug())
48 //saved_checksum_ro = boot_info::get_checksum_ro();
51 kmbi = *(multiboot_info *)(phys_to_virt(get_mbi_pa()));
53 Cmdline::init (kmbi.flags & MULTIBOOT_CMDLINE ?
54 static_cast<char*>(phys_to_virt (kmbi.cmdline)) : "");
60 Boot_info::reset_checksum_ro(void)