zuspec-be-sw 0.1.0.15034067073rc0__cp39-cp39-manylinux_2_34_x86_64.whl → 0.1.0.15089209331rc0__cp39-cp39-manylinux_2_34_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of zuspec-be-sw might be problematic. Click here for more details.
- zsp_be_sw/__build_num__.py +1 -1
- zsp_be_sw/__version__.py +1 -1
- zsp_be_sw/share/include/zsp/be/sw/rt/zsp_alloc.h +22 -0
- zsp_be_sw/share/include/zsp/be/sw/rt/zsp_thread.h +63 -0
- {zuspec_be_sw-0.1.0.15034067073rc0.dist-info → zuspec_be_sw-0.1.0.15089209331rc0.dist-info}/METADATA +1 -1
- {zuspec_be_sw-0.1.0.15034067073rc0.dist-info → zuspec_be_sw-0.1.0.15089209331rc0.dist-info}/RECORD +9 -7
- {zuspec_be_sw-0.1.0.15034067073rc0.dist-info → zuspec_be_sw-0.1.0.15089209331rc0.dist-info}/WHEEL +1 -1
- {zuspec_be_sw-0.1.0.15034067073rc0.dist-info → zuspec_be_sw-0.1.0.15089209331rc0.dist-info}/licenses/LICENSE +0 -0
- {zuspec_be_sw-0.1.0.15034067073rc0.dist-info → zuspec_be_sw-0.1.0.15089209331rc0.dist-info}/top_level.txt +0 -0
zsp_be_sw/__build_num__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
BUILD_NUM=
|
|
1
|
+
BUILD_NUM=15089209331
|
zsp_be_sw/__version__.py
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#include <sys/types.h>
|
|
2
|
+
|
|
3
|
+
#ifdef __cplusplus
|
|
4
|
+
extern "C" {
|
|
5
|
+
#endif
|
|
6
|
+
|
|
7
|
+
struct zsp_alloc_s;
|
|
8
|
+
|
|
9
|
+
typedef void *(*zsp_alloc_func)(struct zsp_alloc_s *, size_t);
|
|
10
|
+
typedef void (*zsp_free_func)(struct zsp_alloc_s *, void *);
|
|
11
|
+
|
|
12
|
+
typedef struct zsp_alloc_s {
|
|
13
|
+
zsp_alloc_func alloc;
|
|
14
|
+
zsp_free_func free;
|
|
15
|
+
} zsp_alloc_t;
|
|
16
|
+
|
|
17
|
+
void zsp_alloc_malloc_init(zsp_alloc_t *alloc);
|
|
18
|
+
|
|
19
|
+
#ifdef __cplusplus
|
|
20
|
+
}
|
|
21
|
+
#endif
|
|
22
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#include <stdint.h>
|
|
2
|
+
#include <stdarg.h>
|
|
3
|
+
#include "zsp_alloc.h"
|
|
4
|
+
|
|
5
|
+
#ifdef __cplusplus
|
|
6
|
+
extern "C" {
|
|
7
|
+
#endif
|
|
8
|
+
|
|
9
|
+
#define STACK_FRAME_SZ 4096
|
|
10
|
+
#define STACK_FRAME_MAX (STACK_FRAME_SZ-(sizeof(frame_t *)+sizeof(uint32_t)))
|
|
11
|
+
|
|
12
|
+
struct zsp_thread_s;
|
|
13
|
+
|
|
14
|
+
typedef struct zsp_frame_s *(zsp_task_func)(struct zsp_thread_s *, struct zsp_frame_s *, va_list *args);
|
|
15
|
+
|
|
16
|
+
typedef struct zsp_frame_s {
|
|
17
|
+
zsp_task_func *func;
|
|
18
|
+
struct zsp_frame_s *prev;
|
|
19
|
+
uint32_t sz;
|
|
20
|
+
int32_t idx;
|
|
21
|
+
} zsp_frame_t;
|
|
22
|
+
|
|
23
|
+
typedef struct zsp_frame_wrap_s {
|
|
24
|
+
zsp_frame_t frame;
|
|
25
|
+
uintptr_t locals;
|
|
26
|
+
} frame_wrap_t;
|
|
27
|
+
|
|
28
|
+
typedef struct zsp_stack_block_s {
|
|
29
|
+
struct zsp_stack_block_s *prev;
|
|
30
|
+
uint32_t idx;
|
|
31
|
+
uint32_t sz;
|
|
32
|
+
uint8_t data[
|
|
33
|
+
STACK_FRAME_SZ-(sizeof(zsp_frame_t *)+sizeof(uint32_t))];
|
|
34
|
+
} zsp_stack_block_t;
|
|
35
|
+
|
|
36
|
+
typedef struct zsp_thread_s {
|
|
37
|
+
zsp_alloc_t *alloc;
|
|
38
|
+
zsp_stack_block_t *block;
|
|
39
|
+
struct zsp_thread_s *next;
|
|
40
|
+
struct zsp_frame_s *leaf;
|
|
41
|
+
uintptr_t rval;
|
|
42
|
+
} zsp_thread_t;
|
|
43
|
+
|
|
44
|
+
typedef struct zsp_scheduler_s {
|
|
45
|
+
zsp_alloc_t *alloc;
|
|
46
|
+
zsp_thread_t *next;
|
|
47
|
+
zsp_thread_t *tail;
|
|
48
|
+
} zsp_scheduler_t;
|
|
49
|
+
|
|
50
|
+
void zsp_scheduler_init(zsp_scheduler_t *sched, zsp_alloc_t *alloc);
|
|
51
|
+
zsp_thread_t *zsp_scheduler_create_thread(zsp_scheduler_t *sched, zsp_task_func *func, ...);
|
|
52
|
+
int zsp_scheduler_run(zsp_scheduler_t *sched);
|
|
53
|
+
zsp_thread_t *zsp_thread_create(zsp_alloc_t *alloc, zsp_task_func *func, ...);
|
|
54
|
+
zsp_frame_t *zsp_thread_alloc_frame( zsp_thread_t *thread, uint32_t sz, zsp_task_func *func);
|
|
55
|
+
zsp_frame_t *zsp_thread_suspend(zsp_thread_t *thread, zsp_frame_t *frame);
|
|
56
|
+
zsp_frame_t *zsp_thread_return(zsp_thread_t *thread, zsp_frame_t *frame, uintptr_t ret);
|
|
57
|
+
zsp_frame_t *zsp_thread_call(zsp_thread_t *thread, zsp_task_func *func, ...);
|
|
58
|
+
zsp_frame_t *zsp_thread_run(zsp_thread_t *thread);
|
|
59
|
+
void zsp_thread_free(zsp_thread_t *thread);
|
|
60
|
+
|
|
61
|
+
#ifdef __cplusplus
|
|
62
|
+
}
|
|
63
|
+
#endif
|
{zuspec_be_sw-0.1.0.15034067073rc0.dist-info → zuspec_be_sw-0.1.0.15089209331rc0.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
zsp_be_sw/__build_num__.py,sha256=
|
|
1
|
+
zsp_be_sw/__build_num__.py,sha256=Cwpu3I-SGMaTAFtoZagbecpNZlzVWF3xKAQByFTvXsY,22
|
|
2
2
|
zsp_be_sw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
zsp_be_sw/__version__.py,sha256=
|
|
3
|
+
zsp_be_sw/__version__.py,sha256=ecj0kv-tnI7doOnqEQlf_qEFD0KgBOzJiJIl_6z0MTw,69
|
|
4
4
|
zsp_be_sw/core.cpython-39-x86_64-linux-gnu.so,sha256=sGNPJYGFokDQruWbSi42SxWFPnu03N8SxxMIBub29zo,1359960
|
|
5
5
|
zsp_be_sw/libzsp-be-sw.so,sha256=GZNYR8bWiE3BcIJosM34aqaKZ0-VgmjTQ-Wmsp9mTrM,3713360
|
|
6
6
|
zsp_be_sw/share/include/zsp/be/sw/FactoryExt.h,sha256=zzqqdoxxJIQhsDb-cDT4vJBqhYC8XJpq1ZEN48FX2z0,100
|
|
@@ -16,9 +16,11 @@ zsp_be_sw/share/include/zsp/be/sw/INameMap.h,sha256=W_YrhZ1YbSgG9FrEuPRD6sadroND
|
|
|
16
16
|
zsp_be_sw/share/include/zsp/be/sw/IOutput.h,sha256=Im0xoATfu_xOobUzfTOmM0ROuXO8w9-VMr0BXVKJRmQ,1727
|
|
17
17
|
zsp_be_sw/share/include/zsp/be/sw/IOutputStr.h,sha256=exVx0hu40uMci_GVP9TCyhVsMFC6DLDRrrpUVwu0SH8,991
|
|
18
18
|
zsp_be_sw/share/include/zsp/be/sw/impl/MethodCallFactoryAssocDataBase.h,sha256=RdRdW7nWYgd7h_wzCeVDLM3xLlzgZ8m0hc9fbdyK9U8,1395
|
|
19
|
+
zsp_be_sw/share/include/zsp/be/sw/rt/zsp_alloc.h,sha256=D2o3MNdjnufmQr5Dfz-PA34Fa054nckkM8rR0sfO2xY,388
|
|
20
|
+
zsp_be_sw/share/include/zsp/be/sw/rt/zsp_thread.h,sha256=E-LbZAcQaTdJBcgfAa4H_X6KgwB7kMw135-M-x63xK4,1986
|
|
19
21
|
zsp_be_sw/share/include/zsp/esw/zsp_esw_support.h,sha256=5hpBmWfy9cN0fg4g7ZM9uyZCxjCuJzW0T_KFMv5pwug,995
|
|
20
|
-
zuspec_be_sw-0.1.0.
|
|
21
|
-
zuspec_be_sw-0.1.0.
|
|
22
|
-
zuspec_be_sw-0.1.0.
|
|
23
|
-
zuspec_be_sw-0.1.0.
|
|
24
|
-
zuspec_be_sw-0.1.0.
|
|
22
|
+
zuspec_be_sw-0.1.0.15089209331rc0.dist-info/METADATA,sha256=T3_0HnMEl_N3Wpr5QPm26YA6FiaF6cFUIA6UzCHWVHI,672
|
|
23
|
+
zuspec_be_sw-0.1.0.15089209331rc0.dist-info/WHEEL,sha256=5DrBlBD9Pndl0ru5NL7BvXSNoQwSCeKSzlpCxAv8IKw,111
|
|
24
|
+
zuspec_be_sw-0.1.0.15089209331rc0.dist-info/top_level.txt,sha256=F69v5yvtf2MTsB19kN7iCBNm1-HkyITrIjM7enDpIh8,10
|
|
25
|
+
zuspec_be_sw-0.1.0.15089209331rc0.dist-info/RECORD,,
|
|
26
|
+
zuspec_be_sw-0.1.0.15089209331rc0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
File without changes
|
|
File without changes
|