Skip to content

Commit

Permalink
Change the interrupt number of Hypercall
Browse files Browse the repository at this point in the history
  • Loading branch information
Yourens committed May 28, 2014
1 parent bc41e1b commit e828c47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kernel/include/core/hypercall.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
typedef enum
{
POK_HYPERCALL_CONSWRITE =10,
POK_HYPERCALL_INT_NUMBER =24,
/* Register an irq handler from a partition */
POK_HYPERCALL_IRQ_REGISTER_HANDLER = 25,
POK_HYPERCALL_IRQ_UNREGISTER_HANDLER = 26,
/* enable/disable interrupt delivery to a partition */
POK_HYPERCALL_IRQ_PARTITION_ENABLE = 27,
POK_HYPERCALL_IRQ_PARTITION_DISABLE = 28,
POK_HYPERCALL_IRQ_PARTITION_ACK = 29,
POK_HYPERCALL_INT_NUMBER =45,
} pok_hypercall_id_t;

typedef struct
Expand Down
2 changes: 1 addition & 1 deletion libpok/arch/x86/hypercall.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pok_ret_t pok_do_hypercall (pok_syscall_id_t syscall_id, pok_syscall_args_t* arg

asm volatile ( "movl %1,%%eax \n\t"
"movl %2,%%ebx \n\t"
"int $24 \n\t"
"int $45 \n\t"
"movl %%eax, %0"
:"=g"(ret)
:"g"(id), "g"(args_addr)
Expand Down
2 changes: 1 addition & 1 deletion libpok/include/core/hypercall.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
typedef enum
{
POK_HYPERCALL_CONSWRITE =10,
POK_HYPERCALL_INT_NUMBER =24,
/* Register an irq handler from a partition */
POK_HYPERCALL_IRQ_REGISTER_HANDLER = 25,
POK_HYPERCALL_IRQ_UNREGISTER_HANDLER = 26,
/* enable/disable interrupt delivery to a partition */
POK_HYPERCALL_IRQ_PARTITION_ENABLE = 27,
POK_HYPERCALL_IRQ_PARTITION_DISABLE = 28,
POK_HYPERCALL_IRQ_PARTITION_ACK = 29,
POK_HYPERCALL_INT_NUMBER =45,
}pok_hypercall_id_t;

typedef struct
Expand Down

0 comments on commit e828c47

Please sign in to comment.