cxt->size = pdata->mem_size;
cxt->phys_addr = pdata->mem_address;
cxt->memtype = pdata->mem_type;
-#ifdef CONFIG_AMLOGIC_DEBUG_FTRACE_PSTORE
- cxt->memtype |= (!!ramoops_io_en);
-#endif
cxt->record_size = pdata->record_size;
cxt->console_size = pdata->console_size;
cxt->ftrace_size = pdata->ftrace_size;
#ifdef CONFIG_AMLOGIC_DEBUG_FTRACE_PSTORE
if (ramoops_ftrace_size) {
cxt->fprz->flags |= (PRZ_FLAG_NO_LOCK | PRZ_FLAG_BIG_LOCK);
- ramoops_ftrace_en = !persistent_ram_old_size(cxt->fprz);
+ ramoops_ftrace_en = 1;
}
pr_info("ramoops_io_en:%d %d old:0x%lx ftrace_size:0x%lx",
ramoops_io_en, ramoops_ftrace_en,
unsigned long start;
unsigned long next;
int err;
+#ifdef CONFIG_AMLOGIC_DEBUG_FTRACE_PSTORE
+ phys_addr_t phys_addr_save = phys_addr;
+#endif
BUG_ON(addr >= end);
#ifdef CONFIG_AMLOGIC_DEBUG_FTRACE_PSTORE
if (need_dump_iomap() && !is_normal_memory(prot))
pr_err("io__map <va:0x%08lx-0x%08lx> pa:0x%lx,port:0x%lx\n",
- start, end, (unsigned long)phys_addr,
+ start, end, (unsigned long)phys_addr_save,
(unsigned long)pgprot_val(prot));
#endif
return err;