Ran Hong commented: 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/75#note_144013


Just let you know, after fixing the error above, you may see two more errors. 
As guided by AI, I applied the following patch to correct them.

diff --git a/freebsd/sys/dev/ofw/ofw_pcib.c b/freebsd/sys/dev/ofw/ofw_pcib.c
index f786f9e8..9e71dcfe 100644
--- a/freebsd/sys/dev/ofw/ofw_pcib.c
+++ b/freebsd/sys/dev/ofw/ofw_pcib.c
@@ -85,9 +85,11 @@ static int ofw_pcib_unmap_resource(device_t, device_t, int, 
struct resource *,
 static int ofw_pcib_translate_resource(device_t bus, int type,
        rman_res_t start, rman_res_t *newstart);

+#ifndef __rtems__
 #ifdef __powerpc__
 static bus_space_tag_t ofw_pcib_bus_get_bus_tag(device_t, device_t);
 #endif
+#endif /* __rtems__ */

 /*
  * pcib interface
@@ -126,9 +128,11 @@ static device_method_t     ofw_pcib_methods[] = {
        DEVMETHOD(bus_map_resource,     ofw_pcib_map_resource),
        DEVMETHOD(bus_unmap_resource,   ofw_pcib_unmap_resource),
        DEVMETHOD(bus_translate_resource,       ofw_pcib_translate_resource),
+#ifndef __rtems__
 #ifdef __powerpc__
        DEVMETHOD(bus_get_bus_tag,      ofw_pcib_bus_get_bus_tag),
 #endif
+#endif /* __rtems__ */

        /* pcib interface */
        DEVMETHOD(pcib_maxslots,        ofw_pcib_maxslots),
diff --git a/freebsd/sys/powerpc/mpc85xx/mpc85xx.h 
b/freebsd/sys/powerpc/mpc85xx/mpc85xx.h
index 669e8be4..9368c5f6 100644
--- a/freebsd/sys/powerpc/mpc85xx/mpc85xx.h
+++ b/freebsd/sys/powerpc/mpc85xx/mpc85xx.h
@@ -77,6 +77,8 @@ extern vm_size_t              ccsrbar_size;
 #define        OCP85XX_LAWSR_85XX(n)   (CCSRBAR_VA + 0xc10 + 0x10 * (n))
 #define        OCP85XX_LAWSR(n)        (mpc85xx_is_qoriq() ? 
OCP85XX_LAWSR_QORIQ(n) : \
                                 OCP85XX_LAWSR_85XX(n))
+#define OCP85XX_LAWBAR_P20XX(n) (CCSRBAR_VA + 0xc08 + 0x20 * (n))
+#define OCP85XX_LAWAR(n)        (CCSRBAR_VA + 0xc10 + 0x20 * (n))

 /* Attribute register */
 #define        OCP85XX_ENA_MASK        0x80000000

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/75#note_144013
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to