Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/smp_asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
#ifndef __SMP_ASM_H__
#define __SMP_ASM_H__

#define MAX_CPUS 32
/* Override at build time, e.g. EXTRA_CFLAGS=-DMAX_CPUS=24, to shrink secondary_stacks. */

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 CPU limit changes stay stale

The example should mention that changing MAX_CPUS requires a clean rebuild. The build rules do not track EXTRA_CFLAGS, and the generated configuration header does not record this value. Reusing a build directory can leave the old image size or mix objects built with different CPU limits.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

#ifndef MAX_CPUS
#define MAX_CPUS 32
#endif
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
#define MAX_EL3_CPUS 4

#define SECONDARY_STACK_SIZE 0x10000
Expand Down