Avoids unwanted sign extension on arm64 that resulted in qemu not
recognising the function ids and matches the specification.
Problem reported by semarie@
ok kettenis@
-/* $OpenBSD: psci.c,v 1.4 2018/01/17 10:17:33 kettenis Exp $ */
+/* $OpenBSD: psci.c,v 1.5 2018/01/28 12:48:20 jsg Exp $ */
/*
* Copyright (c) 2016 Jonathan Gray <jsg@openbsd.org>
struct device sc_dev;
register_t (*sc_callfn)(register_t, register_t, register_t,
register_t);
- int sc_psci_version;
- int sc_system_off;
- int sc_system_reset;
- int sc_cpu_on;
+ uint32_t sc_psci_version;
+ uint32_t sc_system_off;
+ uint32_t sc_system_reset;
+ uint32_t sc_cpu_on;
};
struct psci_softc *psci_sc;