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

@@ -53,7 +53,7 @@
/*
* FIXME: dangerous TRAP here!
*
* all of these functions get compiled with "normal" GCC integers (32 bit). However, since they will be called
* all of these functions get compiled into BaS with "normal" GCC integers (32 bit). However, since they will be called
* from code compiled with -mshort, integers must be declared uint32_t for those compilation units to adhere
* to "normal" GCC calling conventions.
*
@@ -67,8 +67,13 @@
#define UINT16_T uint16_t
#endif
/* a riddle: how do you typedef a function pointer to a function that returns its own type? ;) */
typedef void* (*xhdi_call_fun)(int xhdi_fun, ...);
extern uint32_t xhdi_call(int xhdi_fun, ...);
extern void *xhdi_sd_install(xhdi_call_fun old_vector) __attribute__((__interrupt__));
extern uint32_t xhdi_version(void); /* XHDI 0 */
extern uint32_t xhdi_inquire_target(UINT16_T major, UINT16_T minor, uint32_t *block_size, uint32_t *flags,