Re: [RFC v8 08/20] um: lkl: memory handling
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2021-03-14 16:54:03
Also in:
linux-um
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2021-03-14 16:54:03
Also in:
linux-um
+#else + +#include <asm-generic/nommu_context.h> + +extern void force_flush_all(void);
nit: no need for "extern"
+#define CONFIG_KERNEL_RAM_BASE_ADDRESS memory_start +#include <asm-generic/page.h> + +#define __va_space (8*1024*1024) + +#ifndef __ASSEMBLY__ +#include <mem.h>
Is that <shared/mem.h>? I think we should start including only with that prefix.
+
+void *uml_kmalloc(int size, int flags)
+{
+ return kmalloc(size, flags);
+}That could probably still be shared?
+int set_memory_ro(unsigned long addr, int numpages)
+{
+ return -EOPNOTSUPP;
+}
+
+int set_memory_rw(unsigned long addr, int numpages)
+{
+ return -EOPNOTSUPP;
+}
+
+int set_memory_nx(unsigned long addr, int numpages)
+{
+ return -EOPNOTSUPP;
+}
+
+int set_memory_x(unsigned long addr, int numpages)
+{
+ return -EOPNOTSUPP;
+}UML for now no longer has these either. johannes