Commit 909d4b7e authored by Anton Blanchard's avatar Anton Blanchard

ppc64: get rid of -fomit-frame-pointer and implement xics ibm,int-on

parent e54c378a
...@@ -37,6 +37,10 @@ config COMPAT ...@@ -37,6 +37,10 @@ config COMPAT
bool bool
default y default y
config FRAME_POINTER
bool
default y
source "init/Kconfig" source "init/Kconfig"
......
...@@ -91,6 +91,7 @@ unsigned int default_distrib_server = 0; ...@@ -91,6 +91,7 @@ unsigned int default_distrib_server = 0;
/* RTAS service tokens */ /* RTAS service tokens */
int ibm_get_xive; int ibm_get_xive;
int ibm_set_xive; int ibm_set_xive;
int ibm_int_on;
int ibm_int_off; int ibm_int_off;
struct xics_interrupt_node { struct xics_interrupt_node {
...@@ -162,6 +163,14 @@ xics_enable_irq( ...@@ -162,6 +163,14 @@ xics_enable_irq(
irq, call_status, status); irq, call_status, status);
return; return;
} }
/* Now unmask the interrupt (often a no-op) */
call_status = rtas_call(ibm_int_on, 1, 1, (unsigned long*)&status,
irq);
if( call_status != 0 ) {
printk("xics_disable_irq on: irq=%x: rtas_call failed, retn=%lx\n",
irq, call_status);
return;
}
} }
void void
...@@ -302,6 +311,7 @@ xics_init_IRQ( void ) ...@@ -302,6 +311,7 @@ xics_init_IRQ( void )
ibm_get_xive = rtas_token("ibm,get-xive"); ibm_get_xive = rtas_token("ibm,get-xive");
ibm_set_xive = rtas_token("ibm,set-xive"); ibm_set_xive = rtas_token("ibm,set-xive");
ibm_int_on = rtas_token("ibm,int-on");
ibm_int_off = rtas_token("ibm,int-off"); ibm_int_off = rtas_token("ibm,int-off");
np = find_type_devices("PowerPC-External-Interrupt-Presentation"); np = find_type_devices("PowerPC-External-Interrupt-Presentation");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment