Skip to content

Commit 3dfdfe9

Browse files
Clean up thunks and remove separate stack flag
1 parent edda69e commit 3dfdfe9

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

libraries/ESP8266WiFi/src/BearSSLThunks.S

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ _saveStack: .word 0x00000000
3434

3535

3636
/* void SetThunkStackEnd(unsigned int *end);
37-
*
37+
*
3838
* Stores the address of the user-allocated thunking stack (be sure to pass
3939
* in the *end* of the stack (highest value) since stacks move down on this
4040
* architecture.
@@ -62,21 +62,21 @@ SetThunkStackEnd:
6262
.align 4
6363
thunk_\fcnName:
6464
addi a1, a1, -16 /* Allocate space for saved registers on stack */
65-
65+
6666
s32i a0, a1, 12 /* Store A0, trounced by calls */
6767
s32i a15, a1, 8 /* Store A15 (our temporary one) */
68-
68+
6969
movi a15, _saveStack /* Store A1(SP) in temp space */
7070
s32i a1, a15, 0
71-
71+
7272
movi a15, _stackEnd /* Load A1(SP) with thunk stack */
7373
l32i.n a1, a15, 0
74-
74+
7575
call0 \fcnName /* Do the call */
76-
76+
7777
movi a15, _saveStack /* Restore A1(SP) */
7878
l32i.n a1, a15, 0
79-
79+
8080
l32i.n a15, a1, 8 /* Restore the saved registers */
8181
l32i.n a0, a1, 12
8282

libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ void WiFiClientSecure::_clearAuthenticationSettings() {
9696

9797

9898
WiFiClientSecure::WiFiClientSecure() : WiFiClient() {
99-
disable_extra4k_at_link_time();
10099
_cipher_list = NULL;
101100
_cipher_cnt = 0;
102101
_clear();

0 commit comments

Comments
 (0)