From e08789a78d4f6c01719c6171a4d1843d52a3d3ef Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 30 Jan 2019 22:06:07 -0600 Subject: [PATCH] disabling hsa_shut_down intercepting --- script/hsaap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/hsaap.py b/script/hsaap.py index 31a8076809..27ff082c28 100755 --- a/script/hsaap.py +++ b/script/hsaap.py @@ -404,7 +404,10 @@ class API_DescrParser: self.content += 'static void intercept_' + name + '(' + name + '* table) {\n' self.content += ' ' + name + '_saved = *table;\n' if call != '-': - self.content += ' table->' + call + '_fn = ' + call + '_callback;\n' + if call != 'hsa_shut_down': + self.content += ' table->' + call + '_fn = ' + call + '_callback;\n' + else: + self.content += ' { void* p = (void*)' + call + '_callback; (void)p; }\n' # generate API name function def gen_get_name(self, n, name, call, struct):