khypervisor  v1
Functions
interrupt.h File Reference
#include "hvmm_types.h"
Include dependency graph for interrupt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

hvmm_status_t hvmm_interrupt_init (void)

Function Documentation

Definition at line 11 of file interrupt.c.

{
    hvmm_status_t ret = HVMM_STATUS_UNKNOWN_ERROR;

    /* Route IRQ/IFQ to Hyp Exception Vector */
    {
        uint32_t hcr;

        hcr = read_hcr(); uart_print( "hcr:"); uart_print_hex32(hcr); uart_print("\n\r");
        hcr |= HCR_IMO | HCR_FMO;
        write_hcr( hcr );
        hcr = read_hcr(); uart_print( "hcr:"); uart_print_hex32(hcr); uart_print("\n\r");
    } 

    /* Physical Interrupt: GIC Distributor & CPU Interface */
    ret = gic_init();

    /* Virtual Interrupt: GIC Virtual Interface Control */
    if ( ret == HVMM_STATUS_SUCCESS ) ret = vgic_init();
    if ( ret == HVMM_STATUS_SUCCESS ) ret = vgic_enable(1);
    if ( ret == HVMM_STATUS_SUCCESS ) ret = virq_init();

    return ret;
}

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines