]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/wrappers/stackshot.c
xnu-4903.221.2.tar.gz
[apple/xnu.git] / libsyscall / wrappers / stackshot.c
index 0e065edd2f93cd408a0fe4588d6bb59f6b74d9ef..3a7489e02ac5b5afb59186e01a88dd9bcbf8874b 100644 (file)
@@ -140,9 +140,9 @@ stackshot_capture_with_config(stackshot_config_t *stackshot_config)
                return EINVAL;
        }
 
-       s_config->sc_out_buffer_addr = &s_config->sc_buffer;
-       s_config->sc_out_size_addr = &s_config->sc_size;
-       ret = __stack_snapshot_with_config(STACKSHOT_CONFIG_TYPE, s_config, sizeof(stackshot_config_t));
+       s_config->sc_out_buffer_addr = (uintptr_t)&s_config->sc_buffer;
+       s_config->sc_out_size_addr = (uintptr_t)&s_config->sc_size;
+       ret = __stack_snapshot_with_config(STACKSHOT_CONFIG_TYPE, (uintptr_t)s_config, sizeof(stackshot_config_t));
        
        if (ret != 0) {
                ret = errno;