Skip to contentSkip to conversation

UML - file renaming

PATCH In review Jeff Dike 2 participants 3 messages Sep 26, 2006 – Sep 27, 2006 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/5 UML - file renaming

Move some foo_kern.c files to foo.c now that the old foo.c files are out of the way.

Also cleaned up some whitespace and an emacs formatting comment.

arch/um/kernel/Makefile +1 -1
Index: linux-2.6.18-mm/arch/um/kernel/Makefile
===================================================================
@@ -7,7 +7,7 @@ extra-y := vmlinux.lds
 clean-files :=
 
 obj-y = config.o exec.o exitcode.o init_task.o irq.o ksyms.o mem.o \
-	physmem.o process_kern.o ptrace.o reboot.o resource.o sigio.o \
+	physmem.o process.o ptrace.o reboot.o resource.o sigio.o \
 	signal.o smp.o syscall.o sysrq.o time.o tlb.o trap.o uaccess.o \
 	um_arch.o umid.o
 
arch/um/kernel/process.c new file +483 -0

483 lines not on this page · raw message

arch/um/kernel/process_kern.c deleted +0 -483

483 lines not on this page · raw message

arch/um/kernel/skas/Makefile +1 -2
Index: linux-2.6.18-mm/arch/um/kernel/skas/Makefile
===================================================================
@@ -3,8 +3,7 @@
 # Licensed under the GPL
 #
 
-obj-y := clone.o exec_kern.o mem.o mmu.o process_kern.o \
-	syscall.o tlb.o uaccess.o
+obj-y := clone.o exec.o mem.o mmu.o process.o syscall.o tlb.o uaccess.o
 
 # clone.o is in the stub, so it can't be built with profiling
 # GCC hardened also auto-enables -fpic, but we need %ebx so it can't work ->
arch/um/kernel/skas/exec.c new file +30 -0
Index: linux-2.6.18-mm/arch/um/kernel/skas/exec.c
===================================================================
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2002 Jeff Dike ([email protected])
+ * Licensed under the GPL
+ */
+
+#include "linux/kernel.h"
+#include "asm/current.h"
+#include "asm/page.h"
+#include "asm/signal.h"
+#include "asm/ptrace.h"
+#include "asm/uaccess.h"
+#include "asm/mmu_context.h"
+#include "tlb.h"
+#include "skas.h"
+#include "um_mmu.h"
+#include "os.h"
+
+void flush_thread_skas(void)
+{
+	force_flush_all();
+	switch_mm_skas(&current->mm->context.skas.id);
+}
+
+void start_thread_skas(struct pt_regs *regs, unsigned long eip,
+		       unsigned long esp)
+{
+	set_fs(USER_DS);
+	PT_REGS_IP(regs) = eip;
+	PT_REGS_SP(regs) = esp;
+}
arch/um/kernel/skas/exec_kern.c deleted +0 -41

41 lines not on this page · raw message

arch/um/kernel/skas/process.c new file +217 -0

217 lines not on this page · raw message

arch/um/kernel/skas/process_kern.c deleted +0 -217

217 lines not on this page · raw message

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 2 lines · On Tue, 26 Sep 2006 13:53:15 -0400 Jeff Dike <[email protected]> wrote:

Move some foo_kern.c files to foo.c now that the old foo.c files are out of the way.

This doesn't apply, because arch/um/kernel/process_kern.c has been altered by uml-fix-stack-alignment.patch.

I fixed that up via

mv arch/um/kernel/process_kern.c arch/um/kernel/skas/process_kern.c

Quoted 1 line

Also cleaned up some whitespace and an emacs formatting comment.

So if any of these changes were made to process_kern.c, you've lost 'em.

They shouldn't have been: please do code-moving and code-changing within distinct patches.

This file-moving also moved over a bunch of trailing-whitespace, which I removed. Which violates the previous rule. I'm bad.

btw, it'd be nice to change your scripts to add a diffstat after the ^---.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

author
#2 lore raw
Quoted 1 line · Andrew Morton

So if any of these changes were made to process_kern.c, you've lost 'em.

I'll check the next -mm and send fixes if any are needed.

Quoted 2 lines

They shouldn't have been: please do code-moving and code-changing within distinct patches.

OK.

Quoted 1 line

btw, it'd be nice to change your scripts to add a diffstat after the ^---.

OK, will do.

Jeff

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel