Code: Select all
pflash_write: Unimplemented flash cmd sequence (offset 000000000000xxxxx. wcycle 0x0 cmd 0x0 value 0x18
pflash_write: Unimplemented flash cmd sequence (offset 000000000000xxxxx. wcycle 0x0 cmd 0x0 value 0x104004)
pflash_write: Unimplemented flash cmd sequence (offset 000000000000xxxxx. wcycle 0x0 cmd 0x0 value 0x103fc8)
pflash_write: Unimplemented flash cmd sequence (offset 000000000000xxxxx. wcycle 0x0 cmd 0x0 value 0x11)
pflash_write: Unimplemented flash cmd sequence (offset 000000000000xxxxx. wcycle 0x0 cmd 0x0 value 0xa0003)
pflash_write: Unimplemented flash cmd sequence (offset 000000000000xxxxx. wcycle 0x0 cmd 0x0 value 0xa0)
pflash_write: Unimplemented flash cmd sequence (offset 000000000000xxxxx. wcycle 0x0 cmd 0x0 value 0x80000011)
Code: Select all
unsigned int *p_dir = (unsigned int *) 0x9C000;
unsigned int *p_tab = p_dir + 0x1000;
for(i = 0; i < 1024; i++)
p_dir[i] = 0 | 2;
for(i = 0; i < 1024; i++)
{
p_tab[i] = addr | 3;
addr += 406;
}
p_dir[0] = (int) p_tab;
p_dir[0] |= 3;
asm("mov %0, %%cr3" :: "b" ((int) p_dir));
asm("mov %cr0, %eax");
asm("or $0x80000001, %eax");
asm("mov %eax, %cr0"); //Here's the faulty line. When I remove it, the system doesn't reboot.