Skip to content

Commit

Permalink
Fix KhiCAS quit error
Browse files Browse the repository at this point in the history
When quit KhiCAS with [Shift] > [ON/C], it will assert with message:
```
SYS ASSERTION FAILED AT /home/yuuki410/ExistOS-For-HP39GII/System/Core/queue.c:1473
```
display on COM output.

It's may because of stack size, fixed by change the stack size in
`System/main.c:131`.

Changes:
	Modiffied System/main.c:131
		KhiCAS_STACK_SIZE / 4 -> KhiCAS_STACK_SIZE

Signed by Tachibana Yuuki <yuuki410@163.com>:
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGK7Ap4BEAC2ZQl7CYtWjUFFFladWcUjJa/VnvH9SxUCMoPW1LqFiTUZ9Eir
nYAUeZl+zvROYuWxMxUc/B1hUnPTYgVdLLHUgePt/WKk6TaO1AOakRkQUSkeidas
BrMWU5NUhxJILvMevYVCQDA0gaDXu9iZNqEPe4gXxRylAdngsSEWj70E0EEp/1wd
YRM4kAgkA7js+/49PMvoVNLQCfmZVDzAw3qEO+aLM3SjtX1Y8IrunsETHgWO70X9
cOCuDw5GAfPqcPZIUF74dR4sOavr/7UrBzkgSK2qRQRDwkR+VbFvLOWVawXBvDg/
/TA1cIaRlZDi6Wi4Z69wIuTiTClqs4V2Tj0QyMjJ6yELhv1sINdCYBLcp55v4Ogl
8D9burJTV1fca+k3g7vQ6ZzVOtLDMO6EZ9ZD6eM+MO9vqndjIPmJbgTrEXC8Nbz7
cy3qwoD0TG48kjyhooHB78CJXPMSFoGUqGtzfDXWQxZtTPsCXe3qVMmJCpN8O7gT
NWNa4RluKbTB8CAi4VD5EXZX1loHQo/fzgK2xeiI0hAN6/LKY7LEuzFquq3b8ZJB
zbdNApgI3MG+8ffwPlZcQwsCDeFzrbmL5TDT3/cxGFXwklAHE2C3Bk45U7gU53G7
WK70eu6Bal6POvsXwP2pgI3yAUmuOS2RaBjU5VV5J68xCQqhDYb9z2S7mQARAQAB
tBt5dXVraTQxMCA8eXV1a2k0MTBAMTYzLmNvbT6JAlQEEwEIAD4WIQS/7eCh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J4cpR0GTyI31F+Qcy5B4weC7e6b3S1d/54u05Cx7JGVAs+EvMyQU74Dq
GohVfjkGdtvI9jxa3X+YCURE+dWV7md5HgzwjYqRue2ifBhG54JbxAZatei2Y8lM
Hai9
=fPdS
-----END PGP PUBLIC KEY BLOCK-----
  • Loading branch information
yuuki410 committed Jan 5, 2023
1 parent aef48f4 commit 3b16927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion System/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void khicasTask(void *_) {
}

void StartKhiCAS() {
xTaskCreate(khicasTask, "KhiCAS", KhiCAS_STACK_SIZE / 4, NULL, configMAX_PRIORITIES - 3, (NULL));
xTaskCreate(khicasTask, "KhiCAS", KhiCAS_STACK_SIZE, NULL, configMAX_PRIORITIES - 3, (NULL));
}

void main_thread() {
Expand Down

0 comments on commit 3b16927

Please sign in to comment.