mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-05-17 15:31:57 +00:00
[PATCH] uml: merge mem_user.c and mem.c
The serial UML OS-abstraction layer patch (um/kernel dir). This joins mem_user.c and mem.c files. Signed-off-by: Gennady Sharapov <Gennady.V.Sharapov@intel.com> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
0f80bc85c5
commit
114069f738
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright (C) 2000 - 2003 Jeff Dike (jdike@addtoit.com)
|
||||
* Licensed under the GPL
|
||||
*/
|
||||
@@ -19,6 +19,10 @@
|
||||
#include "mem_user.h"
|
||||
#include "uml_uaccess.h"
|
||||
#include "os.h"
|
||||
#include "linux/types.h"
|
||||
#include "linux/string.h"
|
||||
#include "init.h"
|
||||
#include "kern_constants.h"
|
||||
|
||||
extern char __binary_start;
|
||||
|
||||
@@ -368,6 +372,16 @@ struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address)
|
||||
return pte;
|
||||
}
|
||||
|
||||
struct iomem_region *iomem_regions = NULL;
|
||||
int iomem_size = 0;
|
||||
|
||||
extern int parse_iomem(char *str, int *add) __init;
|
||||
|
||||
__uml_setup("iomem=", parse_iomem,
|
||||
"iomem=<name>,<file>\n"
|
||||
" Configure <file> as an IO memory region named <name>.\n\n"
|
||||
);
|
||||
|
||||
/*
|
||||
* Overrides for Emacs so that we follow Linus's tabbing style.
|
||||
* Emacs will notice this stuff at the end of the file and automatically
|
||||
|
||||
Reference in New Issue
Block a user