Track sv magic access
authorCafe <cafe@not.applicable>
Thu, 27 Jul 2017 00:00:00 +0000 (00:00 +0000)
committerCafe <cafe@not.applicable>
Thu, 27 Jul 2017 16:35:14 +0000 (16:35 +0000)
re.c

diff --git a/re.c b/re.c
index d0793844eecd45eabc4a250ed74514718fd981c5..33a348a06047a80dedb867fa416980257fb6202a 100644 (file)
--- a/re.c
+++ b/re.c
@@ -57,11 +57,12 @@ void *set_value_helper(int fd, uint32_t out) {
 
 uint64_t make_mfbd(bool tiler, uint32_t sv_magic)
 {
+       printf("sv_magic: %X\n", sv_magic);
        struct tentative_mfbd *mfbd = galloc(sizeof(struct tentative_mfbd));
        memset(mfbd, 0, sizeof(struct tentative_mfbd));
 
        /* zeroes */
-       mfbd->block2[0] = sv_magic;
+       mfbd->block2[0] = /* sv_magic */ 0x5ABA0000;
        mfbd->block2[1] = (uint32_t) galloc(64);
        mfbd->ugaT = (uint32_t) galloc(64);
        mfbd->unknown_gpu_address = (uint32_t) galloc(64);