implemented function to initialize driver hook

This commit is contained in:
Markus Fröschle
2013-05-01 14:15:25 +00:00
parent c9f2d83715
commit fa5c08e54c
2 changed files with 14 additions and 1 deletions

View File

@@ -12,6 +12,14 @@
#define DRIVER_VERSION 0x130
static xhdi_call_fun old_vector = NULL;
__attribute__((__interrupt__)) void *xhdi_sd_install(xhdi_call_fun ov)
{
old_vector = ov;
return (void *) xhdi_call;
}
uint32_t xhdi_version(void)
{
return DRIVER_VERSION;