Skip to content
Snippets Groups Projects
Select Git revision
0 results

miosix-kernel

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Alberto Nidasio authored
    For example in interrupts_cortexMx.cpp:
    ```cpp
    static unsigned int getProgramCounter()
    {
        unsigned int result;
        // Get program counter when the exception was thrown from stack frame
        asm volatile("mrs   %0,  psp    \n\t"
                     "add   %0, %0, #24 \n\t"
                     "ldr   %0, [%0]    \n\t":"=r"(result));
        return result;
    }
    ```
    
    To check differences in the generated code we disassempled the compiled source with and without the keyword, both for O0 and O2 and both for gcc and clang.
    Only in a couple of cases with O0 and gcc there were some differences in the instructions, but non in the semantics
    
    Removed `register` keyword and changed how the stack pointer is copied in `getCurrentFreeStack` function
    4651cd2b
    History
    Welcome to the Miosix kernel
    ============================
    
    You can find information on how to configure and use the kernel
    at the following url: http://miosix.org