mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nikita Danilov <Nikita@Namesys.COM>
To: Jeff Dike <jdike@karaya.com>
Cc: Linux Kernel Mailing List <Linux-Kernel@Vger.Kernel.ORG>
Subject: [PATCH]: make UML working with initramfs updates
Date: Wed, 6 Nov 2002 16:05:22 +0300	[thread overview]
Message-ID: <15817.5010.452973.283613@laputa.namesys.com> (raw)

Hello, Jeff, 

this patch syncs UML with recent initramfs updates, plus fixes
compilation warning, and missed sys_swap{on,off} in
arch/um/kernel/sys_call_table.c

I also changed __per_cpu_start to be aligned to 32 bits in
arch/um/uml.lds.S (like in i386).

Nikita.
===== arch/um/Makefile 1.14 vs edited =====
--- 1.14/arch/um/Makefile	Mon Oct 21 11:16:56 2002
+++ edited/arch/um/Makefile	Wed Nov  6 14:55:59 2002
@@ -66,6 +66,7 @@
 
 
 LDFLAGS_vmlinux = -r $(ARCH_DIR)/main.o
+LDFLAGS_BLOB	:= --format binary --oformat elf32-i386
 
 vmlinux: $(ARCH_DIR)/main.o 
 
===== arch/um/uml.lds.S 1.8 vs edited =====
--- 1.8/arch/um/uml.lds.S	Thu Oct 17 11:31:48 2002
+++ edited/arch/um/uml.lds.S	Wed Nov  6 15:26:52 2002
@@ -67,6 +67,7 @@
   __setup_start = .;
   .init.setup : { *(.init.setup) }
   __setup_end = .;
+  . = ALIGN(32);
   __per_cpu_start = . ; 
   .data.percpu : { *(.data.percpu) }
   __per_cpu_end = . ; 
@@ -84,6 +85,10 @@
   __uml_initcall_start = .;
   .uml.initcall.init : { *(.uml.initcall.init) }
   __uml_initcall_end = .;
+  . = ALIGN(4096);
+  __initramfs_start = .;
+  .init.ramfs : { *(.init.ramfs) }
+  __initramfs_end = .;
   __init_end = .;
   __exitcall_begin = .;
   .exitcall : { *(.exitcall.exit) }
===== arch/um/drivers/chan_kern.c 1.4 vs edited =====
--- 1.4/arch/um/drivers/chan_kern.c	Wed Oct  9 09:54:07 2002
+++ edited/arch/um/drivers/chan_kern.c	Wed Nov  6 15:11:43 2002
@@ -17,6 +17,14 @@
 #include "sigio.h"
 #include "line.h"
 
+#if defined(CONFIG_FD_CHAN) && defined(CONFIG_NULL_CHAN) && defined(CONFIG_PORT_CHAN) && defined(CONFIG_PTY_CHAN) && defined(CONFIG_TTY_CHAN) && defined(CONFIG_XTERM_CHAN)
+
+/* do not define not_configged_* here */
+
+#else
+
+/* something is not configured */
+
 static void *not_configged_init(char *str, int device, struct chan_opts *opts)
 {
 	printk(KERN_ERR "Using a channel type which is configured out of "
@@ -84,6 +92,7 @@
 	free:		not_configged_free,
 	winch:		0,
 };
+#endif
 
 static void tty_receive_char(struct tty_struct *tty, char ch)
 {
===== arch/um/kernel/sys_call_table.c 1.4 vs edited =====
--- 1.4/arch/um/kernel/sys_call_table.c	Thu Oct 17 11:29:34 2002
+++ edited/arch/um/kernel/sys_call_table.c	Wed Nov  6 15:01:42 2002
@@ -86,6 +86,8 @@
 extern syscall_handler_t sys_lstat;
 extern syscall_handler_t sys_readlink;
 extern syscall_handler_t sys_uselib;
+extern syscall_handler_t sys_swapon;
+extern syscall_handler_t sys_swapoff;
 extern syscall_handler_t sys_reboot;
 extern syscall_handler_t old_readdir;
 extern syscall_handler_t sys_munmap;
===== include/asm-um/unistd.h 1.2 vs edited =====
--- 1.2/include/asm-um/unistd.h	Sat Oct  5 00:54:32 2002
+++ edited/include/asm-um/unistd.h	Wed Nov  6 16:02:23 2002
@@ -23,7 +23,7 @@
 		       struct timeval *tvp);
 extern long sys_lseek(unsigned int fildes, unsigned long offset, int whence);
 extern long sys_read(unsigned int fildes, char *buf, int len);
-extern long sys_write(unsigned int fildes, char *buf, int len);
+extern long sys_write(int fildes, const char *buf, size_t len);
 
 #ifdef __KERNEL_SYSCALLS__
 

                 reply	other threads:[~2002-11-06 12:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15817.5010.452973.283613@laputa.namesys.com \
    --to=nikita@namesys.com \
    --cc=Linux-Kernel@Vger.Kernel.ORG \
    --cc=jdike@karaya.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®