Thread (30 messages) 30 messages, 8 authors, 2021-06-02

Re: [PATCH 01/15] mm: add setup_initial_init_mm() helper

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2021-05-31 07:45:42

Hi Kefeng,

On Sat, May 29, 2021 at 12:47 PM Kefeng Wang [off-list ref] wrote:
Add setup_initial_init_mm() helper to setup kernel text,
data and brk.

Signed-off-by: Kefeng Wang <redacted>
Thanks for your patch!
quoted hunk ↗ jump to hunk
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -564,6 +564,16 @@ struct mm_struct {
 };

 extern struct mm_struct init_mm;
+static inline void setup_initial_init_mm(char *start_code,
+                                        char *end_code,
+                                        char *end_data,
+                                        char *brk)
"void *" (for all four)?
+{
+       init_mm.start_code = (unsigned long)start_code;
+       init_mm.end_code = (unsigned long)end_code;
+       init_mm.end_data = (unsigned long)end_data;
+       init_mm.brk = (unsigned long)brk;
+}
Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help