Skip to content

Commit

Permalink
Merge pull request #703 from Wolf3s/generic_stubs_improvements
Browse files Browse the repository at this point in the history
Re-Add ioman return value of 64 bits.
  • Loading branch information
uyjulian authored Dec 23, 2024
2 parents 4c0214b + c4a1e01 commit e965a23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion iop/system/ioman/include/ioman.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ typedef struct _iop_device {
} iop_device_t;

#define IOMAN_RETURN_VALUE_IMPL(val) \
static inline int my_ioman_retval_##val##_int(void) {return -val;}
static inline int my_ioman_retval_##val##_int(void) {return -val;} \
static inline signed long long my_ioman_retval_##val##_s64(void) {return -val;}
#define IOMAN_RETURN_VALUE(val) ((void*)&my_ioman_retval_##val##_int)
#define IOMAN_RETURN_VALUE_S64(val) ((void*)&my_ioman_retval_##val##_s64)

typedef struct _iop_device_ops {
int (*init)(iop_device_t *);
Expand Down
4 changes: 3 additions & 1 deletion iop/system/ioman/include/ioman_mod.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ typedef struct _iop_io_device {
} iop_io_device_t;

#define IOMAN_RETURN_VALUE_IMPL(val) \
static inline int my_ioman_retval_##val##_int(void) {return -val;}
static inline int my_ioman_retval_##val##_int(void) {return -val;} \
static inline signed long long my_ioman_retval_##val##_s64(void) {return -val;}
#define IOMAN_RETURN_VALUE(val) ((void*)&my_ioman_retval_##val##_int)
#define IOMAN_RETURN_VALUE_S64(val) ((void*)&my_ioman_retval_##val##_s64)

typedef struct _iop_io_device_ops {
int (*io_init)(iop_io_device_t *);
Expand Down

0 comments on commit e965a23

Please sign in to comment.