Commit 35c3af2
committed
BITS: ctypes: Handle builds with -mrtd -mregparm=3, as used in GRUB
GRUB on i386-pc builds with -mrtd -mregparm=3, which changes the default
calling convention to something libffi doesn't know how to handle.
Explicitly declare functions called via ctypes (memmove, memset,
string_at, wstring_at, and cast) with attributes to make them use the
calling convention libffi expects.1 parent 72c9c58 commit 35c3af2
1 file changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5460 | 5460 | | |
5461 | 5461 | | |
5462 | 5462 | | |
5463 | | - | |
| 5463 | + | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
| 5471 | + | |
| 5472 | + | |
| 5473 | + | |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
| 5477 | + | |
| 5478 | + | |
| 5479 | + | |
5464 | 5480 | | |
5465 | 5481 | | |
5466 | 5482 | | |
| |||
5493 | 5509 | | |
5494 | 5510 | | |
5495 | 5511 | | |
5496 | | - | |
| 5512 | + | |
5497 | 5513 | | |
5498 | 5514 | | |
5499 | 5515 | | |
| |||
5545 | 5561 | | |
5546 | 5562 | | |
5547 | 5563 | | |
5548 | | - | |
| 5564 | + | |
5549 | 5565 | | |
5550 | 5566 | | |
5551 | 5567 | | |
| |||
5703 | 5719 | | |
5704 | 5720 | | |
5705 | 5721 | | |
5706 | | - | |
5707 | | - | |
| 5722 | + | |
| 5723 | + | |
5708 | 5724 | | |
5709 | 5725 | | |
5710 | 5726 | | |
| |||
0 commit comments