Skip to content

Commit e965a23

Browse files
authored
Merge pull request #703 from Wolf3s/generic_stubs_improvements
Re-Add ioman return value of 64 bits.
2 parents 4c0214b + c4a1e01 commit e965a23

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

iop/system/ioman/include/ioman.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ typedef struct _iop_device {
7171
} iop_device_t;
7272

7373
#define IOMAN_RETURN_VALUE_IMPL(val) \
74-
static inline int my_ioman_retval_##val##_int(void) {return -val;}
74+
static inline int my_ioman_retval_##val##_int(void) {return -val;} \
75+
static inline signed long long my_ioman_retval_##val##_s64(void) {return -val;}
7576
#define IOMAN_RETURN_VALUE(val) ((void*)&my_ioman_retval_##val##_int)
77+
#define IOMAN_RETURN_VALUE_S64(val) ((void*)&my_ioman_retval_##val##_s64)
7678

7779
typedef struct _iop_device_ops {
7880
int (*init)(iop_device_t *);

iop/system/ioman/include/ioman_mod.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ typedef struct _iop_io_device {
7373
} iop_io_device_t;
7474

7575
#define IOMAN_RETURN_VALUE_IMPL(val) \
76-
static inline int my_ioman_retval_##val##_int(void) {return -val;}
76+
static inline int my_ioman_retval_##val##_int(void) {return -val;} \
77+
static inline signed long long my_ioman_retval_##val##_s64(void) {return -val;}
7778
#define IOMAN_RETURN_VALUE(val) ((void*)&my_ioman_retval_##val##_int)
79+
#define IOMAN_RETURN_VALUE_S64(val) ((void*)&my_ioman_retval_##val##_s64)
7880

7981
typedef struct _iop_io_device_ops {
8082
int (*io_init)(iop_io_device_t *);

0 commit comments

Comments
 (0)