1
1
/*
2
2
* Copyright (c) 2016 Thomas Pornin <pornin@bolet.org>
3
3
*
4
- * Permission is hereby granted, free of charge, to any person obtaining
4
+ * Permission is hereby granted, free of charge, to any person obtaining
5
5
* a copy of this software and associated documentation files (the
6
6
* "Software"), to deal in the Software without restriction, including
7
7
* without limitation the rights to use, copy, modify, merge, publish,
8
8
* distribute, sublicense, and/or sell copies of the Software, and to
9
9
* permit persons to whom the Software is furnished to do so, subject to
10
10
* the following conditions:
11
11
*
12
- * The above copyright notice and this permission notice shall be
12
+ * The above copyright notice and this permission notice shall be
13
13
* included in all copies or substantial portions of the Software.
14
14
*
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
16
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
18
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19
19
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20
20
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
@@ -2351,15 +2351,14 @@ br_cpuid(uint32_t mask_eax, uint32_t mask_ebx,
2351
2351
2352
2352
#endif
2353
2353
2354
- #if defined( ESP8266 ) && ESP8266_ALTSTACK
2354
+ #ifdef ESP8266
2355
2355
2356
2356
#ifdef __cplusplus
2357
2357
extern "C" {
2358
2358
#endif
2359
2359
2360
2360
#define _debugBearSSL (0)
2361
2361
extern void optimistic_yield (uint32_t );
2362
- extern void system_soft_wdt_feed ();
2363
2362
extern void br_stack_proxy_enter ();
2364
2363
extern void * br_stack_proxy_alloc (size_t bytes );
2365
2364
extern void br_stack_proxy_exit ();
@@ -2370,7 +2369,7 @@ br_cpuid(uint32_t mask_eax, uint32_t mask_ebx,
2370
2369
#define STACK_PROXY_EXIT () { if (_debugBearSSL) { char b[64]; sprintf(b, "EXIT: %s:%s\n", __FILE__, __FUNCTION__ ); _BearSSLSerialPrint(b); } br_stack_proxy_exit(); }
2371
2370
#define STACK_PROXY_ALLOC (type , name , count ) \
2372
2371
type *name = (type *)br_stack_proxy_alloc(sizeof(type) * (count));\
2373
- if (!name) name = (type *)alloca(sizeof(type) * (count));
2372
+ if (!name) name = (type *)alloca(sizeof(type) * (count));
2374
2373
#define dumpstack () if (_debugBearSSL) _BearSSLCheckStack(__FUNCTION__, __FILE__, __LINE__); else {}
2375
2374
2376
2375
#ifdef __cplusplus
@@ -2383,13 +2382,6 @@ br_cpuid(uint32_t mask_eax, uint32_t mask_ebx,
2383
2382
#define STACK_PROXY_ALLOC (type , name , count ) type name[count]
2384
2383
#define dumpstack ()
2385
2384
#define optimistic_yield (ignored )
2386
-
2387
- #if defined(ESP8266 )
2388
- extern void system_soft_wdt_feed ();
2389
- #else
2390
- #define system_soft_wdt_feed ()
2391
- #endif
2392
-
2393
2385
#endif
2394
2386
2395
2387
0 commit comments