Mike Partington | 0910d0b | 2010-10-27 10:31:09 +0000 | [diff] [blame] | 1 | #include <common.h> |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 2 | #include <exports.h> |
Masahiro Yamada | 2d5db19 | 2014-09-04 02:40:59 +0900 | [diff] [blame] | 3 | #include <linux/compiler.h> |
wdenk | 93f6a67 | 2004-07-01 20:28:03 +0000 | [diff] [blame] | 4 | |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 5 | #define FO(x) offsetof(struct jt_funcs, x) |
| 6 | |
Graeme Russ | fea2572 | 2011-04-13 19:43:28 +1000 | [diff] [blame] | 7 | #if defined(CONFIG_X86) |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 8 | /* |
| 9 | * x86 does not have a dedicated register to store the pointer to |
| 10 | * the global_data. Thus the jump table address is stored in a |
| 11 | * global variable, but such approach does not allow for execution |
| 12 | * from flash memory. The global_data address is passed as argv[-1] |
| 13 | * to the application program. |
| 14 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 15 | static struct jt_funcs *jt; |
wdenk | 7784674 | 2003-07-26 08:08:08 +0000 | [diff] [blame] | 16 | gd_t *global_data; |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 17 | |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 18 | #define EXPORT_FUNC(f, a, x, ...) \ |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 19 | asm volatile ( \ |
| 20 | " .globl " #x "\n" \ |
| 21 | #x ":\n" \ |
| 22 | " movl %0, %%eax\n" \ |
| 23 | " movl jt, %%ecx\n" \ |
| 24 | " jmp *(%%ecx, %%eax)\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 25 | : : "i"(FO(x)) : "eax", "ecx"); |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 26 | #elif defined(CONFIG_PPC) |
| 27 | /* |
Wolfgang Denk | e7670f6 | 2008-02-14 22:43:22 +0100 | [diff] [blame] | 28 | * r2 holds the pointer to the global_data, r11 is a call-clobbered |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 29 | * register |
| 30 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 31 | #define EXPORT_FUNC(f, a, x, ...) \ |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 32 | asm volatile ( \ |
| 33 | " .globl " #x "\n" \ |
| 34 | #x ":\n" \ |
Wolfgang Denk | e7670f6 | 2008-02-14 22:43:22 +0100 | [diff] [blame] | 35 | " lwz %%r11, %0(%%r2)\n" \ |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 36 | " lwz %%r11, %1(%%r11)\n" \ |
| 37 | " mtctr %%r11\n" \ |
| 38 | " bctr\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 39 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "r11"); |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 40 | #elif defined(CONFIG_ARM) |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 41 | #ifdef CONFIG_ARM64 |
| 42 | /* |
| 43 | * x18 holds the pointer to the global_data, x9 is a call-clobbered |
| 44 | * register |
| 45 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 46 | #define EXPORT_FUNC(f, a, x, ...) \ |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 47 | asm volatile ( \ |
| 48 | " .globl " #x "\n" \ |
| 49 | #x ":\n" \ |
| 50 | " ldr x9, [x18, %0]\n" \ |
| 51 | " ldr x9, [x9, %1]\n" \ |
| 52 | " br x9\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 53 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "x9"); |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 54 | #else |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 55 | /* |
Jeroen Hofstee | a5a42ee | 2013-11-21 22:32:51 +0100 | [diff] [blame] | 56 | * r9 holds the pointer to the global_data, ip is a call-clobbered |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 57 | * register |
| 58 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 59 | #define EXPORT_FUNC(f, a, x, ...) \ |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 60 | asm volatile ( \ |
| 61 | " .globl " #x "\n" \ |
| 62 | #x ":\n" \ |
Jeroen Hofstee | a5a42ee | 2013-11-21 22:32:51 +0100 | [diff] [blame] | 63 | " ldr ip, [r9, %0]\n" \ |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 64 | " ldr pc, [ip, %1]\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 65 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "ip"); |
David Feng | 0ae7653 | 2013-12-14 11:47:35 +0800 | [diff] [blame] | 66 | #endif |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 67 | #elif defined(CONFIG_MIPS) |
| 68 | /* |
| 69 | * k0 ($26) holds the pointer to the global_data; t9 ($25) is a call- |
| 70 | * clobbered register that is also used to set gp ($26). Note that the |
| 71 | * jr instruction also executes the instruction immediately following |
| 72 | * it; however, GCC/mips generates an additional `nop' after each asm |
| 73 | * statement |
| 74 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 75 | #define EXPORT_FUNC(f, a, x, ...) \ |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 76 | asm volatile ( \ |
| 77 | " .globl " #x "\n" \ |
| 78 | #x ":\n" \ |
| 79 | " lw $25, %0($26)\n" \ |
| 80 | " lw $25, %1($25)\n" \ |
| 81 | " jr $25\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 82 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "t9"); |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 83 | #elif defined(CONFIG_NIOS2) |
| 84 | /* |
Thomas Chou | 0df01fd3 | 2010-05-21 11:08:03 +0800 | [diff] [blame] | 85 | * gp holds the pointer to the global_data, r8 is call-clobbered |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 86 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 87 | #define EXPORT_FUNC(f, a, x, ...) \ |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 88 | asm volatile ( \ |
| 89 | " .globl " #x "\n" \ |
| 90 | #x ":\n" \ |
| 91 | " movhi r8, %%hi(%0)\n" \ |
| 92 | " ori r8, r0, %%lo(%0)\n" \ |
Thomas Chou | 0df01fd3 | 2010-05-21 11:08:03 +0800 | [diff] [blame] | 93 | " add r8, r8, gp\n" \ |
wdenk | 5c952cf | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 94 | " ldw r8, 0(r8)\n" \ |
| 95 | " ldw r8, %1(r8)\n" \ |
| 96 | " jmp r8\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 97 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "gp"); |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 98 | #elif defined(CONFIG_M68K) |
| 99 | /* |
| 100 | * d7 holds the pointer to the global_data, a0 is a call-clobbered |
| 101 | * register |
| 102 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 103 | #define EXPORT_FUNC(f, a, x, ...) \ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 104 | asm volatile ( \ |
| 105 | " .globl " #x "\n" \ |
| 106 | #x ":\n" \ |
| 107 | " move.l %%d7, %%a0\n" \ |
| 108 | " adda.l %0, %%a0\n" \ |
| 109 | " move.l (%%a0), %%a0\n" \ |
| 110 | " adda.l %1, %%a0\n" \ |
| 111 | " move.l (%%a0), %%a0\n" \ |
| 112 | " jmp (%%a0)\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 113 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "a0"); |
wdenk | 857cad3 | 2004-07-10 23:48:41 +0000 | [diff] [blame] | 114 | #elif defined(CONFIG_MICROBLAZE) |
wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 115 | /* |
| 116 | * r31 holds the pointer to the global_data. r5 is a call-clobbered. |
| 117 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 118 | #define EXPORT_FUNC(f, a, x, ...) \ |
wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 119 | asm volatile ( \ |
| 120 | " .globl " #x "\n" \ |
| 121 | #x ":\n" \ |
| 122 | " lwi r5, r31, %0\n" \ |
| 123 | " lwi r5, r5, %1\n" \ |
| 124 | " bra r5\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 125 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "r5"); |
Wolfgang Denk | 0afe519 | 2006-03-12 02:10:00 +0100 | [diff] [blame] | 126 | #elif defined(CONFIG_BLACKFIN) |
| 127 | /* |
Robin Getz | c4db335 | 2009-08-17 15:23:02 +0000 | [diff] [blame] | 128 | * P3 holds the pointer to the global_data, P0 is a call-clobbered |
Wolfgang Denk | 0afe519 | 2006-03-12 02:10:00 +0100 | [diff] [blame] | 129 | * register |
| 130 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 131 | #define EXPORT_FUNC(f, a, x, ...) \ |
Wolfgang Denk | 8e7b703 | 2006-03-12 02:55:22 +0100 | [diff] [blame] | 132 | asm volatile ( \ |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 133 | " .globl _" #x "\n_" \ |
Wolfgang Denk | 0afe519 | 2006-03-12 02:10:00 +0100 | [diff] [blame] | 134 | #x ":\n" \ |
Robin Getz | c4db335 | 2009-08-17 15:23:02 +0000 | [diff] [blame] | 135 | " P0 = [P3 + %0]\n" \ |
Wolfgang Denk | 0afe519 | 2006-03-12 02:10:00 +0100 | [diff] [blame] | 136 | " P0 = [P0 + %1]\n" \ |
| 137 | " JUMP (P0)\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 138 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "P0"); |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 139 | #elif defined(CONFIG_AVR32) |
| 140 | /* |
| 141 | * r6 holds the pointer to the global_data. r8 is call clobbered. |
| 142 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 143 | #define EXPORT_FUNC(f, a, x, ...) \ |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 144 | asm volatile( \ |
| 145 | " .globl\t" #x "\n" \ |
| 146 | #x ":\n" \ |
| 147 | " ld.w r8, r6[%0]\n" \ |
| 148 | " ld.w pc, r8[%1]\n" \ |
| 149 | : \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 150 | : "i"(offsetof(gd_t, jt)), "i"(FO(x)) \ |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 151 | : "r8"); |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 152 | #elif defined(CONFIG_SH) |
| 153 | /* |
| 154 | * r13 holds the pointer to the global_data. r1 is a call clobbered. |
| 155 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 156 | #define EXPORT_FUNC(f, a, x, ...) \ |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 157 | asm volatile ( \ |
| 158 | " .align 2\n" \ |
| 159 | " .globl " #x "\n" \ |
| 160 | #x ":\n" \ |
| 161 | " mov r13, r1\n" \ |
| 162 | " add %0, r1\n" \ |
Nobuhiro Iwamatsu | cae6f90 | 2008-10-09 13:54:33 +0900 | [diff] [blame] | 163 | " mov.l @r1, r2\n" \ |
| 164 | " add %1, r2\n" \ |
| 165 | " mov.l @r2, r1\n" \ |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 166 | " jmp @r1\n" \ |
| 167 | " nop\n" \ |
| 168 | " nop\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 169 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "r1", "r2"); |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 170 | #elif defined(CONFIG_SPARC) |
| 171 | /* |
| 172 | * g7 holds the pointer to the global_data. g1 is call clobbered. |
| 173 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 174 | #define EXPORT_FUNC(f, a, x, ...) \ |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 175 | asm volatile( \ |
| 176 | " .globl\t" #x "\n" \ |
| 177 | #x ":\n" \ |
| 178 | " set %0, %%g1\n" \ |
| 179 | " or %%g1, %%g7, %%g1\n" \ |
| 180 | " ld [%%g1], %%g1\n" \ |
| 181 | " ld [%%g1 + %1], %%g1\n" \ |
Sergey Mironov | 2c0c58b | 2009-09-23 16:47:38 +0400 | [diff] [blame] | 182 | " jmp %%g1\n" \ |
Daniel Hellstrom | c2f02da | 2008-03-28 09:47:00 +0100 | [diff] [blame] | 183 | " nop\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 184 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "g1"); |
Macpaul Lin | 72c73dd | 2011-10-11 22:33:20 +0000 | [diff] [blame] | 185 | #elif defined(CONFIG_NDS32) |
| 186 | /* |
| 187 | * r16 holds the pointer to the global_data. gp is call clobbered. |
| 188 | * not support reduced register (16 GPR). |
| 189 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 190 | #define EXPORT_FUNC(f, a, x, ...) \ |
Macpaul Lin | 72c73dd | 2011-10-11 22:33:20 +0000 | [diff] [blame] | 191 | asm volatile ( \ |
| 192 | " .globl " #x "\n" \ |
| 193 | #x ":\n" \ |
| 194 | " lwi $r16, [$gp + (%0)]\n" \ |
| 195 | " lwi $r16, [$r16 + (%1)]\n" \ |
| 196 | " jr $r16\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 197 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "$r16"); |
Stefan Kristiansson | 3553493 | 2011-11-18 19:21:35 +0000 | [diff] [blame] | 198 | #elif defined(CONFIG_OPENRISC) |
| 199 | /* |
| 200 | * r10 holds the pointer to the global_data, r13 is a call-clobbered |
| 201 | * register |
| 202 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 203 | #define EXPORT_FUNC(f, a, x, ...) \ |
Stefan Kristiansson | 3553493 | 2011-11-18 19:21:35 +0000 | [diff] [blame] | 204 | asm volatile ( \ |
| 205 | " .globl " #x "\n" \ |
| 206 | #x ":\n" \ |
| 207 | " l.lwz r13, %0(r10)\n" \ |
| 208 | " l.lwz r13, %1(r13)\n" \ |
| 209 | " l.jr r13\n" \ |
| 210 | " l.nop\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 211 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "r13"); |
Alexey Brodkin | 794ab57 | 2014-02-04 12:56:17 +0400 | [diff] [blame] | 212 | #elif defined(CONFIG_ARC) |
| 213 | /* |
| 214 | * r25 holds the pointer to the global_data. r10 is call clobbered. |
| 215 | */ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 216 | #define EXPORT_FUNC(f, a, x, ...) \ |
Alexey Brodkin | 794ab57 | 2014-02-04 12:56:17 +0400 | [diff] [blame] | 217 | asm volatile( \ |
| 218 | " .align 4\n" \ |
| 219 | " .globl " #x "\n" \ |
| 220 | #x ":\n" \ |
| 221 | " ld r10, [r25, %0]\n" \ |
| 222 | " ld r10, [r10, %1]\n" \ |
| 223 | " j [r10]\n" \ |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 224 | : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "r10"); |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 225 | #else |
Macpaul Lin | 72c73dd | 2011-10-11 22:33:20 +0000 | [diff] [blame] | 226 | /*" addi $sp, $sp, -24\n" \ |
| 227 | " br $r16\n" \*/ |
| 228 | |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 229 | #error stubs definition missing for this architecture |
| 230 | #endif |
| 231 | |
| 232 | /* This function is necessary to prevent the compiler from |
| 233 | * generating prologue/epilogue, preparing stack frame etc. |
| 234 | * The stub functions are special, they do not use the stack |
| 235 | * frame passed to them, but pass it intact to the actual |
| 236 | * implementation. On the other hand, asm() statements with |
| 237 | * arguments can be used only inside the functions (gcc limitation) |
| 238 | */ |
Masahiro Yamada | 2d5db19 | 2014-09-04 02:40:59 +0900 | [diff] [blame] | 239 | #if GCC_VERSION < 30400 |
wdenk | 93f6a67 | 2004-07-01 20:28:03 +0000 | [diff] [blame] | 240 | static |
| 241 | #endif /* GCC_VERSION */ |
| 242 | void __attribute__((unused)) dummy(void) |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 243 | { |
| 244 | #include <_exports.h> |
| 245 | } |
| 246 | |
Simon Glass | 716cc8c | 2013-03-05 14:39:39 +0000 | [diff] [blame] | 247 | #include <asm/sections.h> |
wdenk | d716b12 | 2004-04-12 16:12:49 +0000 | [diff] [blame] | 248 | |
Wolfgang Denk | 54841ab | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 249 | void app_startup(char * const *argv) |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 250 | { |
Simon Glass | 716cc8c | 2013-03-05 14:39:39 +0000 | [diff] [blame] | 251 | char *cp = __bss_start; |
wdenk | d716b12 | 2004-04-12 16:12:49 +0000 | [diff] [blame] | 252 | |
| 253 | /* Zero out BSS */ |
Simon Glass | 716cc8c | 2013-03-05 14:39:39 +0000 | [diff] [blame] | 254 | while (cp < _end) |
wdenk | d716b12 | 2004-04-12 16:12:49 +0000 | [diff] [blame] | 255 | *cp++ = 0; |
wdenk | d716b12 | 2004-04-12 16:12:49 +0000 | [diff] [blame] | 256 | |
Graeme Russ | fea2572 | 2011-04-13 19:43:28 +1000 | [diff] [blame] | 257 | #if defined(CONFIG_X86) |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 258 | /* x86 does not have a dedicated register for passing global_data */ |
wdenk | 7784674 | 2003-07-26 08:08:08 +0000 | [diff] [blame] | 259 | global_data = (gd_t *)argv[-1]; |
| 260 | jt = global_data->jt; |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 261 | #endif |
| 262 | } |
| 263 | |
| 264 | #undef EXPORT_FUNC |