Commit | Line | Data |
---|---|---|
2a259a3d BS |
1 | /* |
2 | * Copyright 2012 Red Hat Inc. | |
3 | * | |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | |
5 | * copy of this software and associated documentation files (the "Software"), | |
6 | * to deal in the Software without restriction, including without limitation | |
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
8 | * and/or sell copies of the Software, and to permit persons to whom the | |
9 | * Software is furnished to do so, subject to the following conditions: | |
10 | * | |
11 | * The above copyright notice and this permission notice shall be included in | |
12 | * all copies or substantial portions of the Software. | |
13 | * | |
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR | |
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
20 | * OTHER DEALINGS IN THE SOFTWARE. | |
21 | * | |
22 | */ | |
23 | ||
ebb945a9 BS |
24 | #include <core/object.h> |
25 | #include <core/client.h> | |
26 | #include <core/device.h> | |
27 | #include <core/class.h> | |
28 | #include <core/mm.h> | |
2a259a3d | 29 | |
ebb945a9 BS |
30 | #include <subdev/fb.h> |
31 | #include <subdev/timer.h> | |
32 | #include <subdev/instmem.h> | |
7e22e71e | 33 | #include <engine/graph.h> |
ebb945a9 BS |
34 | |
35 | #include "nouveau_drm.h" | |
2a259a3d | 36 | #include "nouveau_dma.h" |
ebb945a9 BS |
37 | #include "nouveau_gem.h" |
38 | #include "nouveau_chan.h" | |
2a259a3d | 39 | #include "nouveau_abi16.h" |
ebb945a9 BS |
40 | |
41 | struct nouveau_abi16 * | |
42 | nouveau_abi16_get(struct drm_file *file_priv, struct drm_device *dev) | |
43 | { | |
44 | struct nouveau_cli *cli = nouveau_cli(file_priv); | |
45 | mutex_lock(&cli->mutex); | |
46 | if (!cli->abi16) { | |
47 | struct nouveau_abi16 *abi16; | |
48 | cli->abi16 = abi16 = kzalloc(sizeof(*abi16), GFP_KERNEL); | |
49 | if (cli->abi16) { | |
50 | INIT_LIST_HEAD(&abi16->channels); | |
51 | abi16->client = nv_object(cli); | |
52 | ||
53 | /* allocate device object targeting client's default | |
54 | * device (ie. the one that belongs to the fd it | |
55 | * opened) | |
56 | */ | |
57 | if (nouveau_object_new(abi16->client, NVDRM_CLIENT, | |
58 | NVDRM_DEVICE, 0x0080, | |
59 | &(struct nv_device_class) { | |
60 | .device = ~0ULL, | |
61 | }, | |
62 | sizeof(struct nv_device_class), | |
63 | &abi16->device) == 0) | |
64 | return cli->abi16; | |
65 | ||
66 | kfree(cli->abi16); | |
67 | cli->abi16 = NULL; | |
68 | } | |
69 | ||
70 | mutex_unlock(&cli->mutex); | |
71 | } | |
72 | return cli->abi16; | |
73 | } | |
74 | ||
75 | int | |
76 | nouveau_abi16_put(struct nouveau_abi16 *abi16, int ret) | |
77 | { | |
78 | struct nouveau_cli *cli = (void *)abi16->client; | |
79 | mutex_unlock(&cli->mutex); | |
80 | return ret; | |
81 | } | |
82 | ||
83 | u16 | |
84 | nouveau_abi16_swclass(struct nouveau_drm *drm) | |
85 | { | |
86 | switch (nv_device(drm->device)->card_type) { | |
87 | case NV_04: | |
88 | return 0x006e; | |
89 | case NV_10: | |
90 | case NV_20: | |
91 | case NV_30: | |
92 | case NV_40: | |
93 | return 0x016e; | |
94 | case NV_50: | |
95 | return 0x506e; | |
96 | case NV_C0: | |
97 | case NV_D0: | |
98 | case NV_E0: | |
99 | return 0x906e; | |
100 | } | |
101 | ||
102 | return 0x0000; | |
103 | } | |
104 | ||
105 | static void | |
106 | nouveau_abi16_ntfy_fini(struct nouveau_abi16_chan *chan, | |
107 | struct nouveau_abi16_ntfy *ntfy) | |
108 | { | |
109 | nouveau_mm_free(&chan->heap, &ntfy->node); | |
110 | list_del(&ntfy->head); | |
111 | kfree(ntfy); | |
112 | } | |
113 | ||
114 | static void | |
115 | nouveau_abi16_chan_fini(struct nouveau_abi16 *abi16, | |
116 | struct nouveau_abi16_chan *chan) | |
117 | { | |
118 | struct nouveau_abi16_ntfy *ntfy, *temp; | |
119 | ||
2b77c1c0 MS |
120 | /* wait for all activity to stop before releasing notify object, which |
121 | * may be still in use */ | |
122 | if (chan->chan && chan->ntfy) | |
123 | nouveau_channel_idle(chan->chan); | |
124 | ||
ebb945a9 BS |
125 | /* cleanup notifier state */ |
126 | list_for_each_entry_safe(ntfy, temp, &chan->notifiers, head) { | |
127 | nouveau_abi16_ntfy_fini(chan, ntfy); | |
128 | } | |
129 | ||
130 | if (chan->ntfy) { | |
131 | nouveau_bo_vma_del(chan->ntfy, &chan->ntfy_vma); | |
132 | drm_gem_object_unreference_unlocked(chan->ntfy->gem); | |
133 | } | |
134 | ||
135 | if (chan->heap.block_size) | |
136 | nouveau_mm_fini(&chan->heap); | |
137 | ||
138 | /* destroy channel object, all children will be killed too */ | |
139 | if (chan->chan) { | |
140 | abi16->handles &= ~(1 << (chan->chan->handle & 0xffff)); | |
141 | nouveau_channel_del(&chan->chan); | |
142 | } | |
143 | ||
144 | list_del(&chan->head); | |
145 | kfree(chan); | |
146 | } | |
147 | ||
148 | void | |
149 | nouveau_abi16_fini(struct nouveau_abi16 *abi16) | |
150 | { | |
151 | struct nouveau_cli *cli = (void *)abi16->client; | |
152 | struct nouveau_abi16_chan *chan, *temp; | |
153 | ||
154 | /* cleanup channels */ | |
155 | list_for_each_entry_safe(chan, temp, &abi16->channels, head) { | |
156 | nouveau_abi16_chan_fini(abi16, chan); | |
157 | } | |
158 | ||
159 | /* destroy the device object */ | |
160 | nouveau_object_del(abi16->client, NVDRM_CLIENT, NVDRM_DEVICE); | |
161 | ||
162 | kfree(cli->abi16); | |
163 | cli->abi16 = NULL; | |
164 | } | |
2a259a3d BS |
165 | |
166 | int | |
167 | nouveau_abi16_ioctl_getparam(ABI16_IOCTL_ARGS) | |
168 | { | |
ebb945a9 BS |
169 | struct nouveau_drm *drm = nouveau_drm(dev); |
170 | struct nouveau_device *device = nv_device(drm->device); | |
171 | struct nouveau_timer *ptimer = nouveau_timer(device); | |
7e22e71e | 172 | struct nouveau_graph *graph = (void *)nouveau_engine(device, NVDEV_ENGINE_GR); |
2a259a3d BS |
173 | struct drm_nouveau_getparam *getparam = data; |
174 | ||
175 | switch (getparam->param) { | |
176 | case NOUVEAU_GETPARAM_CHIPSET_ID: | |
ebb945a9 | 177 | getparam->value = device->chipset; |
2a259a3d BS |
178 | break; |
179 | case NOUVEAU_GETPARAM_PCI_VENDOR: | |
180 | getparam->value = dev->pci_vendor; | |
181 | break; | |
182 | case NOUVEAU_GETPARAM_PCI_DEVICE: | |
183 | getparam->value = dev->pci_device; | |
184 | break; | |
185 | case NOUVEAU_GETPARAM_BUS_TYPE: | |
186 | if (drm_pci_device_is_agp(dev)) | |
187 | getparam->value = 0; | |
188 | else | |
189 | if (!pci_is_pcie(dev->pdev)) | |
190 | getparam->value = 1; | |
191 | else | |
192 | getparam->value = 2; | |
193 | break; | |
194 | case NOUVEAU_GETPARAM_FB_SIZE: | |
ebb945a9 | 195 | getparam->value = drm->gem.vram_available; |
2a259a3d BS |
196 | break; |
197 | case NOUVEAU_GETPARAM_AGP_SIZE: | |
ebb945a9 | 198 | getparam->value = drm->gem.gart_available; |
2a259a3d BS |
199 | break; |
200 | case NOUVEAU_GETPARAM_VM_VRAM_BASE: | |
201 | getparam->value = 0; /* deprecated */ | |
202 | break; | |
203 | case NOUVEAU_GETPARAM_PTIMER_TIME: | |
ebb945a9 | 204 | getparam->value = ptimer->read(ptimer); |
2a259a3d BS |
205 | break; |
206 | case NOUVEAU_GETPARAM_HAS_BO_USAGE: | |
207 | getparam->value = 1; | |
208 | break; | |
209 | case NOUVEAU_GETPARAM_HAS_PAGEFLIP: | |
210 | getparam->value = 1; | |
211 | break; | |
212 | case NOUVEAU_GETPARAM_GRAPH_UNITS: | |
7e22e71e CB |
213 | getparam->value = graph->units ? graph->units(graph) : 0; |
214 | break; | |
2a259a3d | 215 | default: |
ebb945a9 | 216 | nv_debug(device, "unknown parameter %lld\n", getparam->param); |
2a259a3d BS |
217 | return -EINVAL; |
218 | } | |
219 | ||
220 | return 0; | |
221 | } | |
222 | ||
223 | int | |
224 | nouveau_abi16_ioctl_setparam(ABI16_IOCTL_ARGS) | |
225 | { | |
226 | return -EINVAL; | |
227 | } | |
228 | ||
229 | int | |
230 | nouveau_abi16_ioctl_channel_alloc(ABI16_IOCTL_ARGS) | |
231 | { | |
2a259a3d | 232 | struct drm_nouveau_channel_alloc *init = data; |
ebb945a9 BS |
233 | struct nouveau_cli *cli = nouveau_cli(file_priv); |
234 | struct nouveau_drm *drm = nouveau_drm(dev); | |
235 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); | |
236 | struct nouveau_abi16_chan *chan; | |
237 | struct nouveau_client *client; | |
238 | struct nouveau_device *device; | |
239 | struct nouveau_instmem *imem; | |
240 | struct nouveau_fb *pfb; | |
2a259a3d BS |
241 | int ret; |
242 | ||
ebb945a9 BS |
243 | if (unlikely(!abi16)) |
244 | return -ENOMEM; | |
bf7e438b MS |
245 | |
246 | if (!drm->channel) | |
247 | return nouveau_abi16_put(abi16, -ENODEV); | |
248 | ||
ebb945a9 | 249 | client = nv_client(abi16->client); |
ebb945a9 BS |
250 | device = nv_device(abi16->device); |
251 | imem = nouveau_instmem(device); | |
252 | pfb = nouveau_fb(device); | |
253 | ||
49469800 BS |
254 | /* hack to allow channel engine type specification on kepler */ |
255 | if (device->card_type >= NV_E0) { | |
256 | if (init->fb_ctxdma_handle != ~0) | |
257 | init->fb_ctxdma_handle = NVE0_CHANNEL_IND_ENGINE_GR; | |
258 | else | |
259 | init->fb_ctxdma_handle = init->tt_ctxdma_handle; | |
260 | ||
261 | /* allow flips to be executed if this is a graphics channel */ | |
262 | init->tt_ctxdma_handle = 0; | |
263 | if (init->fb_ctxdma_handle == NVE0_CHANNEL_IND_ENGINE_GR) | |
264 | init->tt_ctxdma_handle = 1; | |
265 | } | |
266 | ||
267 | if (init->fb_ctxdma_handle == ~0 || init->tt_ctxdma_handle == ~0) | |
268 | return nouveau_abi16_put(abi16, -EINVAL); | |
269 | ||
ebb945a9 BS |
270 | /* allocate "abi16 channel" data and make up a handle for it */ |
271 | init->channel = ffsll(~abi16->handles); | |
272 | if (!init->channel--) | |
273 | return nouveau_abi16_put(abi16, -ENOSPC); | |
274 | ||
275 | chan = kzalloc(sizeof(*chan), GFP_KERNEL); | |
276 | if (!chan) | |
277 | return nouveau_abi16_put(abi16, -ENOMEM); | |
278 | ||
279 | INIT_LIST_HEAD(&chan->notifiers); | |
280 | list_add(&chan->head, &abi16->channels); | |
281 | abi16->handles |= (1 << init->channel); | |
2a259a3d | 282 | |
ebb945a9 BS |
283 | /* create channel object and initialise dma and fence management */ |
284 | ret = nouveau_channel_new(drm, cli, NVDRM_DEVICE, NVDRM_CHAN | | |
285 | init->channel, init->fb_ctxdma_handle, | |
286 | init->tt_ctxdma_handle, &chan->chan); | |
2a259a3d | 287 | if (ret) |
ebb945a9 BS |
288 | goto done; |
289 | ||
290 | if (device->card_type >= NV_50) | |
291 | init->pushbuf_domains = NOUVEAU_GEM_DOMAIN_VRAM | | |
292 | NOUVEAU_GEM_DOMAIN_GART; | |
293 | else | |
294 | if (chan->chan->push.buffer->bo.mem.mem_type == TTM_PL_VRAM) | |
2a259a3d | 295 | init->pushbuf_domains = NOUVEAU_GEM_DOMAIN_VRAM; |
ebb945a9 BS |
296 | else |
297 | init->pushbuf_domains = NOUVEAU_GEM_DOMAIN_GART; | |
2a259a3d | 298 | |
ebb945a9 | 299 | if (device->card_type < NV_C0) { |
2a259a3d BS |
300 | init->subchan[0].handle = 0x00000000; |
301 | init->subchan[0].grclass = 0x0000; | |
302 | init->subchan[1].handle = NvSw; | |
ebb945a9 | 303 | init->subchan[1].grclass = 0x506e; |
2a259a3d BS |
304 | init->nr_subchan = 2; |
305 | } | |
306 | ||
307 | /* Named memory object area */ | |
ebb945a9 BS |
308 | ret = nouveau_gem_new(dev, PAGE_SIZE, 0, NOUVEAU_GEM_DOMAIN_GART, |
309 | 0, 0, &chan->ntfy); | |
310 | if (ret == 0) | |
311 | ret = nouveau_bo_pin(chan->ntfy, TTM_PL_FLAG_TT); | |
312 | if (ret) | |
313 | goto done; | |
314 | ||
315 | if (device->card_type >= NV_50) { | |
316 | ret = nouveau_bo_vma_add(chan->ntfy, client->vm, | |
317 | &chan->ntfy_vma); | |
318 | if (ret) | |
319 | goto done; | |
320 | } | |
321 | ||
322 | ret = drm_gem_handle_create(file_priv, chan->ntfy->gem, | |
2a259a3d | 323 | &init->notifier_handle); |
ebb945a9 BS |
324 | if (ret) |
325 | goto done; | |
2a259a3d | 326 | |
ebb945a9 BS |
327 | ret = nouveau_mm_init(&chan->heap, 0, PAGE_SIZE, 1); |
328 | done: | |
329 | if (ret) | |
330 | nouveau_abi16_chan_fini(abi16, chan); | |
331 | return nouveau_abi16_put(abi16, ret); | |
2a259a3d BS |
332 | } |
333 | ||
ebb945a9 | 334 | |
2a259a3d BS |
335 | int |
336 | nouveau_abi16_ioctl_channel_free(ABI16_IOCTL_ARGS) | |
337 | { | |
338 | struct drm_nouveau_channel_free *req = data; | |
ebb945a9 BS |
339 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); |
340 | struct nouveau_abi16_chan *chan; | |
341 | int ret = -ENOENT; | |
2a259a3d | 342 | |
ebb945a9 BS |
343 | if (unlikely(!abi16)) |
344 | return -ENOMEM; | |
2a259a3d | 345 | |
ebb945a9 BS |
346 | list_for_each_entry(chan, &abi16->channels, head) { |
347 | if (chan->chan->handle == (NVDRM_CHAN | req->channel)) { | |
348 | nouveau_abi16_chan_fini(abi16, chan); | |
349 | return nouveau_abi16_put(abi16, 0); | |
350 | } | |
351 | } | |
352 | ||
353 | return nouveau_abi16_put(abi16, ret); | |
2a259a3d BS |
354 | } |
355 | ||
356 | int | |
357 | nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS) | |
358 | { | |
359 | struct drm_nouveau_grobj_alloc *init = data; | |
ebb945a9 BS |
360 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); |
361 | struct nouveau_drm *drm = nouveau_drm(dev); | |
362 | struct nouveau_object *object; | |
2a259a3d BS |
363 | int ret; |
364 | ||
ebb945a9 BS |
365 | if (unlikely(!abi16)) |
366 | return -ENOMEM; | |
367 | ||
2a259a3d | 368 | if (init->handle == ~0) |
ebb945a9 | 369 | return nouveau_abi16_put(abi16, -EINVAL); |
2a259a3d BS |
370 | |
371 | /* compatibility with userspace that assumes 506e for all chipsets */ | |
372 | if (init->class == 0x506e) { | |
ebb945a9 | 373 | init->class = nouveau_abi16_swclass(drm); |
2a259a3d | 374 | if (init->class == 0x906e) |
ebb945a9 | 375 | return nouveau_abi16_put(abi16, 0); |
2a259a3d BS |
376 | } |
377 | ||
ebb945a9 BS |
378 | ret = nouveau_object_new(abi16->client, NVDRM_CHAN | init->channel, |
379 | init->handle, init->class, NULL, 0, &object); | |
380 | return nouveau_abi16_put(abi16, ret); | |
2a259a3d BS |
381 | } |
382 | ||
383 | int | |
384 | nouveau_abi16_ioctl_notifierobj_alloc(ABI16_IOCTL_ARGS) | |
385 | { | |
ebb945a9 BS |
386 | struct drm_nouveau_notifierobj_alloc *info = data; |
387 | struct nouveau_drm *drm = nouveau_drm(dev); | |
388 | struct nouveau_device *device = nv_device(drm->device); | |
389 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); | |
b43decd2 | 390 | struct nouveau_abi16_chan *chan = NULL, *temp; |
ebb945a9 BS |
391 | struct nouveau_abi16_ntfy *ntfy; |
392 | struct nouveau_object *object; | |
f756944a | 393 | struct nv_dma_class args = {}; |
2a259a3d BS |
394 | int ret; |
395 | ||
ebb945a9 BS |
396 | if (unlikely(!abi16)) |
397 | return -ENOMEM; | |
398 | ||
2a259a3d | 399 | /* completely unnecessary for these chipsets... */ |
ebb945a9 BS |
400 | if (unlikely(nv_device(abi16->device)->card_type >= NV_C0)) |
401 | return nouveau_abi16_put(abi16, -EINVAL); | |
2a259a3d | 402 | |
b43decd2 ML |
403 | list_for_each_entry(temp, &abi16->channels, head) { |
404 | if (temp->chan->handle == (NVDRM_CHAN | info->channel)) { | |
405 | chan = temp; | |
ebb945a9 | 406 | break; |
b43decd2 | 407 | } |
ebb945a9 | 408 | } |
2a259a3d | 409 | |
ebb945a9 BS |
410 | if (!chan) |
411 | return nouveau_abi16_put(abi16, -ENOENT); | |
412 | ||
413 | ntfy = kzalloc(sizeof(*ntfy), GFP_KERNEL); | |
414 | if (!ntfy) | |
415 | return nouveau_abi16_put(abi16, -ENOMEM); | |
416 | ||
417 | list_add(&ntfy->head, &chan->notifiers); | |
418 | ntfy->handle = info->handle; | |
419 | ||
420 | ret = nouveau_mm_head(&chan->heap, 1, info->size, info->size, 1, | |
421 | &ntfy->node); | |
422 | if (ret) | |
423 | goto done; | |
424 | ||
425 | args.start = ntfy->node->offset; | |
426 | args.limit = ntfy->node->offset + ntfy->node->length - 1; | |
427 | if (device->card_type >= NV_50) { | |
428 | args.flags = NV_DMA_TARGET_VM | NV_DMA_ACCESS_VM; | |
429 | args.start += chan->ntfy_vma.offset; | |
430 | args.limit += chan->ntfy_vma.offset; | |
431 | } else | |
432 | if (drm->agp.stat == ENABLED) { | |
433 | args.flags = NV_DMA_TARGET_AGP | NV_DMA_ACCESS_RDWR; | |
434 | args.start += drm->agp.base + chan->ntfy->bo.offset; | |
435 | args.limit += drm->agp.base + chan->ntfy->bo.offset; | |
436 | } else { | |
437 | args.flags = NV_DMA_TARGET_VM | NV_DMA_ACCESS_RDWR; | |
438 | args.start += chan->ntfy->bo.offset; | |
439 | args.limit += chan->ntfy->bo.offset; | |
440 | } | |
441 | ||
442 | ret = nouveau_object_new(abi16->client, chan->chan->handle, | |
443 | ntfy->handle, 0x003d, &args, | |
444 | sizeof(args), &object); | |
445 | if (ret) | |
446 | goto done; | |
447 | ||
448 | done: | |
449 | if (ret) | |
450 | nouveau_abi16_ntfy_fini(chan, ntfy); | |
451 | return nouveau_abi16_put(abi16, ret); | |
2a259a3d BS |
452 | } |
453 | ||
454 | int | |
455 | nouveau_abi16_ioctl_gpuobj_free(ABI16_IOCTL_ARGS) | |
456 | { | |
ebb945a9 BS |
457 | struct drm_nouveau_gpuobj_free *fini = data; |
458 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); | |
b43decd2 | 459 | struct nouveau_abi16_chan *chan = NULL, *temp; |
ebb945a9 | 460 | struct nouveau_abi16_ntfy *ntfy; |
2a259a3d BS |
461 | int ret; |
462 | ||
ebb945a9 BS |
463 | if (unlikely(!abi16)) |
464 | return -ENOMEM; | |
465 | ||
b43decd2 ML |
466 | list_for_each_entry(temp, &abi16->channels, head) { |
467 | if (temp->chan->handle == (NVDRM_CHAN | fini->channel)) { | |
468 | chan = temp; | |
ebb945a9 | 469 | break; |
b43decd2 | 470 | } |
ebb945a9 BS |
471 | } |
472 | ||
473 | if (!chan) | |
474 | return nouveau_abi16_put(abi16, -ENOENT); | |
2a259a3d | 475 | |
ebb945a9 BS |
476 | /* synchronize with the user channel and destroy the gpu object */ |
477 | nouveau_channel_idle(chan->chan); | |
2a259a3d | 478 | |
ebb945a9 BS |
479 | ret = nouveau_object_del(abi16->client, chan->chan->handle, fini->handle); |
480 | if (ret) | |
481 | return nouveau_abi16_put(abi16, ret); | |
482 | ||
483 | /* cleanup extra state if this object was a notifier */ | |
484 | list_for_each_entry(ntfy, &chan->notifiers, head) { | |
485 | if (ntfy->handle == fini->handle) { | |
486 | nouveau_mm_free(&chan->heap, &ntfy->node); | |
487 | list_del(&ntfy->head); | |
488 | break; | |
489 | } | |
490 | } | |
491 | ||
492 | return nouveau_abi16_put(abi16, 0); | |
2a259a3d | 493 | } |