Skip to content

Commit e499d90

Browse files
Merge pull request #248 from Bauer312/update-fbsd
Resolve implicit conversion error on latest MacOS Mojave with latest Xcode
2 parents a5a0874 + 0e5c4ec commit e499d90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/include/xhyve/firmware/fbsd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct loader_callbacks {
6666
/* Set a guest register value */
6767
void (*setreg)(void *arg, int, uint64_t);
6868
/* Set a guest MSR value */
69-
void (*setmsr)(void *arg, int, uint64_t);
69+
void (*setmsr)(void *arg, u_int, uint64_t);
7070
/* Set a guest CR value */
7171
void (*setcr)(void *arg, int, uint64_t);
7272
/* Set the guest GDT address */

src/lib/firmware/fbsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ cb_setreg(UNUSED void *arg, int r, uint64_t v)
679679
}
680680

681681
static void
682-
cb_setmsr(UNUSED void *arg, int r, uint64_t v)
682+
cb_setmsr(UNUSED void *arg, u_int r, uint64_t v)
683683
{
684684
int error;
685685
enum vm_reg_name vmreg;

0 commit comments

Comments
 (0)