zuspec-be-sw 0.1.0.15079889547rc0__cp310-cp310-manylinux_2_28_x86_64.whl → 0.1.0.15090725596rc0__cp310-cp310-manylinux_2_28_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.

@@ -1 +1 @@
1
- BUILD_NUM=15079889547
1
+ BUILD_NUM=15090725596
zsp_be_sw/__version__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  BASE="0.1.0"
2
- SUFFIX=".15079889547rc0"
2
+ SUFFIX=".15090725596rc0"
3
3
  VERSION="%s%s" % (BASE, SUFFIX)
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zuspec-be-sw
3
- Version: 0.1.0.15079889547rc0
3
+ Version: 0.1.0.15090725596rc0
4
4
  Summary: Backend library to generate software output
5
5
  Home-page: https://github.com/zuspec/zuspec-be-sw
6
6
  Author: Matthew Ballance
@@ -1,6 +1,6 @@
1
- zsp_be_sw/__build_num__.py,sha256=ClZnDZjHnm9sV44wG1nIt-tWYQNo8-5R7jAuaGw75bU,22
1
+ zsp_be_sw/__build_num__.py,sha256=SVFHLMyNa08fq7-sEpDHfx3yxdFCPB7dutbOa_5GAVo,22
2
2
  zsp_be_sw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- zsp_be_sw/__version__.py,sha256=bOU3bXusrvDZAnmCUPdMJnDEwWpqhdhSXFBKGcZEUtw,69
3
+ zsp_be_sw/__version__.py,sha256=zXOR5bfwfbD1Gob1V7ij1DcU5sz_4sEqNgXZxl2FL7E,69
4
4
  zsp_be_sw/core.cpython-310-x86_64-linux-gnu.so,sha256=XqrHfpIPDdJqfetH6fdsTFoNlAm2xV687Mgo96EvP1Y,1666432
5
5
  zsp_be_sw/libzsp-be-sw.so,sha256=4saDvFZO9IVYjvHGUabYiNAl4hQCwh-v61FnvJldh7E,3713664
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.15079889547rc0.dist-info/METADATA,sha256=oY88pu2uLH2WxSa-vDJqo-3s3-AoV7n98Gn3_SQ8kRc,672
21
- zuspec_be_sw-0.1.0.15079889547rc0.dist-info/WHEEL,sha256=96suJqwEIo8VDcTErxuAuhK-LRa7c_zLGSQz5QFVwb0,113
22
- zuspec_be_sw-0.1.0.15079889547rc0.dist-info/top_level.txt,sha256=F69v5yvtf2MTsB19kN7iCBNm1-HkyITrIjM7enDpIh8,10
23
- zuspec_be_sw-0.1.0.15079889547rc0.dist-info/RECORD,,
24
- zuspec_be_sw-0.1.0.15079889547rc0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
+ zuspec_be_sw-0.1.0.15090725596rc0.dist-info/METADATA,sha256=ohPUQzJiN5Ze6BxKKP8mqF_lROtF5N01Mpj9MP4cQSs,672
23
+ zuspec_be_sw-0.1.0.15090725596rc0.dist-info/WHEEL,sha256=96suJqwEIo8VDcTErxuAuhK-LRa7c_zLGSQz5QFVwb0,113
24
+ zuspec_be_sw-0.1.0.15090725596rc0.dist-info/top_level.txt,sha256=F69v5yvtf2MTsB19kN7iCBNm1-HkyITrIjM7enDpIh8,10
25
+ zuspec_be_sw-0.1.0.15090725596rc0.dist-info/RECORD,,
26
+ zuspec_be_sw-0.1.0.15090725596rc0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357