]> git.sur5r.net Git - u-boot/blobdiff - examples/mem_to_mem_idma2intr.c
POST: replace the LOGBUFF_INITIALIZED flag in gd->post_log_word (1 << 31) with the...
[u-boot] / examples / mem_to_mem_idma2intr.c
index 3a269c9082a588732605340ea16a42fec0293d4b..3ff28041f81267bdf548a2a4b7fd062e8e59de5a 100644 (file)
@@ -30,6 +30,8 @@
 #include <common.h>
 #include <exports.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define STANDALONE
 
 #ifndef STANDALONE                     /* Linked into/Part of  PPCBoot */
@@ -346,8 +348,6 @@ static uint dpbase = 0;
 
 uint dpalloc (uint size, uint align)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
        uint retloc;
        uint align_mask, off;