summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-03-28 11:06:00 +0106
committerJohn Ogness <john.ogness@linutronix.de>2019-03-28 11:06:00 +0106
commit0b94092f4d96f0c48f24272641af171fc8065515 (patch)
treeac08ce5f4c08d865fce707131de2e4b1ece21106
parent785ef8909c9dc5f53e45290821ec7be73e23c1b4 (diff)
linux-mm-basics: increase stack size
The example shows a prefaulted stack size of 8KB, which is pretty small. Set it up to 64KB, which is a bit mor realistic. Also, remove the pointless "return" at the end of that function. Signed-off-by: John Ogness <john.ogness@linutronix.de>
-rw-r--r--kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex b/kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex
index 859e7af..89abef2 100644
--- a/kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex
+++ b/kernel-devel/linux-mm-basics/pres_linux-mm-basics_en.tex
@@ -186,13 +186,12 @@ if(mlockall(MCL_CURRENT|MCL_FUTURE) == -1) {
\begin{frame}[fragile]
\frametitle{Stack prefaulting}
\begin{verbatim}
-#define MAX_SAFE_STACK (8*1024)
+#define MAX_SAFE_STACK (64*1024)
void stack_prefault(void) {
unsigned char dummy[MAX_SAFE_STACK];
memset(&dummy, 0, MAX_SAFE_STACK);
- return;
}
\end{verbatim}
\end{frame}