-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib,smp,setup: rewrite write_sp() as macro
The write_sp() may not be inlined (esp. when compiled with -O0) and then it is called to. After stack swap, the function cannot return. Thus, this should be a macro to make things stay away from stack. To further simplify things during AP initialization, allocate new stack frames from BSP and use the new pointer value directly in AP's WRITE_SP. Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
- Loading branch information
Showing
3 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters