mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
soc: rockchip: rk_fiq_debugger fix the 'cpu' to unsigned long
Change-Id: I5f432f86226f30df8a565407544ee46e7129e045 Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
@@ -332,8 +332,7 @@ static int fiq_sip_enabled;
|
||||
static int fiq_target_cpu;
|
||||
static phys_addr_t ft_fiq_mem_phy;
|
||||
static void __iomem *ft_fiq_mem_base;
|
||||
static void (*sip_fiq_debugger_uart_irq_tf)(struct pt_regs *_pt_regs,
|
||||
unsigned long cpu);
|
||||
static sip_fiq_debugger_uart_irq_tf_cb_t sip_fiq_debugger_uart_irq_tf;
|
||||
static struct pt_regs fiq_pt_regs;
|
||||
|
||||
int sip_fiq_debugger_is_enabled(void)
|
||||
@@ -435,7 +434,7 @@ static void sip_fiq_debugger_uart_irq_tf_cb(unsigned long sp_el1,
|
||||
__invoke_sip_fn_smc(SIP_UARTDBG_FN, 0, 0, UARTDBG_CFG_OSHDL_TO_OS);
|
||||
}
|
||||
|
||||
int sip_fiq_debugger_uart_irq_tf_init(u32 irq_id, void *callback_fn)
|
||||
int sip_fiq_debugger_uart_irq_tf_init(u32 irq_id, sip_fiq_debugger_uart_irq_tf_cb_t callback_fn)
|
||||
{
|
||||
struct arm_smccc_res res;
|
||||
|
||||
|
||||
@@ -648,7 +648,7 @@ static void rk_fiq_debugger_enable_debug(struct platform_device *pdev, bool val)
|
||||
sip_fiq_debugger_enable_debug(val);
|
||||
}
|
||||
|
||||
static void fiq_debugger_uart_irq_tf(struct pt_regs *_pt_regs, u64 cpu)
|
||||
static void fiq_debugger_uart_irq_tf(struct pt_regs *_pt_regs, unsigned long cpu)
|
||||
{
|
||||
fiq_debugger_fiq(_pt_regs, cpu);
|
||||
}
|
||||
|
||||
@@ -201,6 +201,9 @@ enum {
|
||||
HDMIRX_INFO_NOTIFY = 2,
|
||||
};
|
||||
|
||||
struct pt_regs;
|
||||
typedef void (*sip_fiq_debugger_uart_irq_tf_cb_t)(struct pt_regs *_pt_regs, unsigned long cpu);
|
||||
|
||||
/*
|
||||
* Rules: struct arm_smccc_res contains result and data, details:
|
||||
*
|
||||
@@ -235,7 +238,7 @@ ulong sip_cpu_logical_map_mpidr(u32 cpu);
|
||||
/***************************fiq debugger **************************************/
|
||||
void sip_fiq_debugger_enable_fiq(bool enable, uint32_t tgt_cpu);
|
||||
void sip_fiq_debugger_enable_debug(bool enable);
|
||||
int sip_fiq_debugger_uart_irq_tf_init(u32 irq_id, void *callback_fn);
|
||||
int sip_fiq_debugger_uart_irq_tf_init(u32 irq_id, sip_fiq_debugger_uart_irq_tf_cb_t callback_fn);
|
||||
int sip_fiq_debugger_set_print_port(u32 port_phyaddr, u32 baudrate);
|
||||
int sip_fiq_debugger_request_share_memory(void);
|
||||
int sip_fiq_debugger_get_target_cpu(void);
|
||||
@@ -356,7 +359,7 @@ static inline void sip_fiq_debugger_enable_fiq
|
||||
|
||||
static inline void sip_fiq_debugger_enable_debug(bool enable) { return; }
|
||||
static inline int sip_fiq_debugger_uart_irq_tf_init(u32 irq_id,
|
||||
void *callback_fn)
|
||||
sip_fiq_debugger_uart_irq_tf_cb_t callback_fn)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user