mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Get MbedTLS and its unit tests passing AARCH64
This commit is contained in:
parent
5e2f7f7ced
commit
4edbc98811
37 changed files with 632 additions and 725 deletions
20
third_party/python/Include/ceval.h
vendored
20
third_party/python/Include/ceval.h
vendored
|
@ -113,17 +113,15 @@ int _Py_CheckRecursiveCall(const char *);
|
|||
({ \
|
||||
int rc = 0; \
|
||||
intptr_t rsp, bot; \
|
||||
if (!IsTiny()) { \
|
||||
if (IsModeDbg()) { \
|
||||
PyThreadState_GET()->recursion_depth++; \
|
||||
rc = _Py_CheckRecursiveCall(where); \
|
||||
} else { \
|
||||
rsp = (intptr_t)__builtin_frame_address(0); \
|
||||
bot = GetStackAddr() + 32768; \
|
||||
if (UNLIKELY(rsp < bot)) { \
|
||||
PyErr_Format(PyExc_MemoryError, "Stack overflow%s", where); \
|
||||
rc = -1; \
|
||||
} \
|
||||
if (IsModeDbg()) { \
|
||||
PyThreadState_GET()->recursion_depth++; \
|
||||
rc = _Py_CheckRecursiveCall(where); \
|
||||
} else { \
|
||||
rsp = (intptr_t)__builtin_frame_address(0); \
|
||||
bot = GetStackAddr() + 32768; \
|
||||
if (UNLIKELY(rsp < bot)) { \
|
||||
PyErr_Format(PyExc_MemoryError, "Stack overflow%s", where); \
|
||||
rc = -1; \
|
||||
} \
|
||||
} \
|
||||
rc; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue