ARM: rockchip: fix for function tracer

This commit is contained in:
黄涛
2014-05-27 18:33:26 +08:00
parent 5f26f3a306
commit 20c152bbc7
2 changed files with 12 additions and 6 deletions

View File

@@ -167,6 +167,7 @@ static void inline uart_printch(char byte)
rkpm_udelay(1);
write_uart:
writel_relaxed(byte, RK_DEBUG_UART_VIRT);
dsb();
@@ -174,11 +175,13 @@ static void inline uart_printch(char byte)
while (!(readl_relaxed(RK_DEBUG_UART_VIRT + 0x14) & 0x40))
barrier();
if (byte == '\n') {
byte = '\r';
goto write_uart;
}
cru_writel(reg_save[0]|0x1<<((u_pclk_id%16)+16),RK3188_CRU_GATEID_CONS(u_clk_id));
cru_writel(reg_save[1]|0x1<<((u_pclk_id%16)+16),RK3188_CRU_GATEID_CONS(u_pclk_id));
if (byte == '\n')
uart_printch('\r');
}
void PIE_FUNC(sram_printch)(char byte)

View File

@@ -1223,6 +1223,7 @@ static void inline uart_printch(char byte)
rkpm_udelay(1);
write_uart:
writel_relaxed(byte, RK_DEBUG_UART_VIRT);
dsb();
@@ -1230,11 +1231,13 @@ static void inline uart_printch(char byte)
while (!(readl_relaxed(RK_DEBUG_UART_VIRT + 0x14) & 0x40))
barrier();
if (byte == '\n') {
byte = '\r';
goto write_uart;
}
cru_writel(reg_save[0]|CRU_W_MSK(u_clk_id%16,0x1),RK3288_CRU_GATEID_CONS(u_clk_id));
cru_writel(reg_save[1]|CRU_W_MSK(u_pclk_id%16,0x1),RK3288_CRU_GATEID_CONS(u_pclk_id));
if (byte == '\n')
uart_printch('\r');
}
void PIE_FUNC(sram_printch)(char byte)