https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233579
--- Comment #8 from Dennis Clarke <[email protected]> ---
Minor correction .. printf ("%p",foo) has a snit if foo isn't a 64bit data
element similar to a pointer thus :
*** sys/powerpc/powermac/macgpio.c.orig Tue Dec 4 23:52:41 2018
--- sys/powerpc/powermac/macgpio.c Wed Dec 5 14:31:30 2018
***************
*** 161,169 ****
--- 161,171 ----
phandle_t root, child, iparent;
device_t cdev;
uint32_t irq;
+ printf("DEBUG : in %s at %d\n",__FILE__, __LINE__);
sc = device_get_softc(dev);
root = sc->sc_node = ofw_bus_get_node(dev);
+ printf("DEBUG : in %s at %d\nDEBUG : root = sc->sc_node = %p\n",
__FILE__, __LINE__, (void *)((uint64_t)root));
sc->sc_gpios = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
&sc->sc_gpios_rid, RF_ACTIVE);
Ugly but it works.
I think phandle_t is a uint32_t and so a trivial %x could have done the job.
Regardless we now know that the problem is not in macgpio.c and must move
onwards to smu.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.