mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
Make sure RAMFUNC is not inlined, else it won't be in RAM.
Some static RAMFUNC got inlined which means they weren't relocated in RAM. By forcing noinline on RAMFUNC, the following functions move to RAM: F .data 00000034 optimizedSniff F .data 00000148 skipSniff F .data 000002c8 ManchesterDecoding_Thinfilm But ManchesterDecoding_Thinfilm worked fine without being in RAM, so we remove its RAMFUNC attribute and it works as previously, and avoid eating some RAM bytes. In summary, impacted command is only: hf sniff
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ extern bool g_tearoff_enabled;
|
||||
|
||||
|
||||
//#define RAMFUNC __attribute((long_call, section(".ramfunc")))
|
||||
#define RAMFUNC __attribute((long_call, section(".ramfunc"))) __attribute__((target("arm")))
|
||||
#define RAMFUNC __attribute((long_call, section(".ramfunc"))) __attribute__((target("arm"))) __attribute__((noinline))
|
||||
|
||||
#ifndef PM3_ROTR
|
||||
# define PM3_ROTR(x,n) (((uintmax_t)(x) >> (n)) | ((uintmax_t)(x) << ((sizeof(x) * 8) - (n))))
|
||||
|
||||
Reference in New Issue
Block a user