The macros which extract registers from a struct sigcontext are no
longer needed and can be removed. They are starting not to build
anyway, given the removal of the 'e' and 'r' from register names
during the x86 merge.
Cc: Jiri Olsa <[EMAIL PROTECTED]>
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
From: Al Viro <[EMAIL PROTECTED]>
That's not enough, unfortunately. If we go that way, we need to add
dependencies on !UML for several options.
[ jdike - "not enough" refers to my patch which enables X86_32 and
RWSEM_XCHGADD_ALGORITHM in UML's Kconfig.i386 ]
Signed-off-by: Al Viro <[EMAIL PROTE
Some register accessor cleanups -
userspace() was calling restore_registers and save_registers for no
reason, since userspace() is on the libc side of the house, and these
add no value over calling ptrace directly
init_thread_registers and get_safe_registers were the same thing,
so
On Thu, Nov 15, 2007 at 04:15:21PM -0800, Andrew Morton wrote:
> I assumed from the above that Karol was the author of this patch. Please
> let me know if that was wrong.
He is - I forgot the From line...
Jeff
--
Work email - jdike at linux dot intel dot com
-
T
On Wed, 14 Nov 2007 14:20:49 -0500
Jeff Dike <[EMAIL PROTECTED]> wrote:
> This patch removes a variable which was not used in two functions.
> Yet another code cleanup, nothing really significant.
>
> Please note that I could not test this on x86_64. I don't have the
> hardware for it.
>
> [ jdi
This patch removes a variable which was not used in two functions.
Yet another code cleanup, nothing really significant.
Please note that I could not test this on x86_64. I don't have the
hardware for it.
[ jdike - Bits of tidying around the affected code. Also, it's fine on
x86_64 ]
Signed-off
commit 2a772652c3971745228a2e40e6575ae594c88365
Author: Jeff Dike <[EMAIL PROTECTED]>
Date: Tue Oct 16 01:26:45 2007 -0700
uml: fix an IPV6 libc vs kernel symbol clash
On some systems, with IPV6 configured, there is a clash between the kernel's
in6addr_any and the one in libc.
asm/page.h is disappearing from the libc headers and we don't need it anyway.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
---
arch/um/kernel/skas/clone.c |1 -
1 file changed, 1 deletion(-)
Index: linux-2.6.22/arch/um/kernel/skas/clone.c
=
From: WANG Cong <[EMAIL PROTECTED]>
This patch contains varied fixes and improvements for some files under
arch/um/os-Linux/, such as a typo fix in a perror message, a missing
argument fix for a printf, some constifying for pointers and so on.
[ jdike - made sigprocmask failure return -errno inst
Now that the generic console operations are in a userspace file, we
can do the following:
directly call into libc instead of through the os_* wrappers
eliminate os_window_size since it has only one user
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
--
arch/um/drivers/chan_user.c |
Instead of writing entire structures between UML and the I/O thread,
we send pointers. This cuts down on the amount of data being copied
and possibly allows more requests to be pending between the two.
This requires that the requests be kmalloced and freed instead of
living on the stack.
Signed-
This patch starts the removal of a very old, very broken piece of
code. This stems from the problem of passing a userspace buffer into
read() or write() on the host. If that buffer had not yet been faulted
in, read and write will return -EFAULT.
To avoid this problem, the solution was to fault t
HOST_FRAME_SIZE isn't used any more. It has been replaced with MAX_REG_NR.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
--
arch/um/sys-i386/user-offsets.c |1 -
arch/um/sys-x86_64/user-offsets.c |1 -
2 files changed, 2 deletions(-)
Index: linux-2.6.21-mm/arch/um/sys-i386/user-offsets
On Tue, Apr 03, 2007 at 07:50:16PM +0200, Blaisorblade wrote:
> Please, simply include uml-config.h and use just UML_CONFIG_MODE_TT.
okok :-)
Jeff
Use only one ifdef to mark stack_sp as being tt mode only.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
--
arch/um/include/kern_util.h |
If there's a segfault inside the kernel, we want a dump of the registers
at the point of the segfault, not the registers at the point of
calling panic or the last userspace registers.
sig_handler_common_skas now uses a static register set in the case
of a SIGSEGV to avoid messing up the process re
On lunedì 2 aprile 2007, Jeff Dike wrote:
> Clean up arch/um/kernel/process.c -
> lots of return(x); -> return x; conversions
> a number of the small functions are either unused, in which
> case they are gone, along any declarations in a header, or could be
> made static.
> curre
Clean up arch/um/kernel/process.c -
lots of return(x); -> return x; conversions
a number of the small functions are either unused, in which
case they are gone, along any declarations in a header, or could be
made static.
current_pid is ifdefed on CONFIG_MODE_TT and its decla
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
Improve checking and diagnostics for broadcast and multicast Ethernet MAC
addresses, and distinguish between those cases in output; also make sure the
device is assigned a MAC address valid only locally to avoid collisions.
Signed-off-by
Fix a few formatting bugs in the signal code.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
--
arch/um/kernel/signal.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: test/arch/um/kernel/signal.c
===
--- test.or
Formatting fixes -
style violations
whitespace breakage
emacs formatting comment removal
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
--
arch/um/kernel/um_arch.c | 51 +--
arch/um/os-Linux/main.c | 11 +
arch/um/sys-i3
Include the proper header to get a definition of PAGE_SHIFT.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
Index: linux-2.6.17/arch/um/include/sysdep-i386/stub.h
===
--- linux-2.6.17.orig/arch/um/include/sysdep-i386/stub.h2006
>From Al Viro:
Fix a macro typo which could break if the macro is passed arguments with
side-effects.
Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
Index: linux-2.6.13-rc6/arch/um/include/sysdep-x86_64/ptrace.h
===
--- linux-2.6.13-r
From: Bodo Stroesser <[EMAIL PROTECTED]>
With this patch, we change the way we handle switching from PTRACE_SYSEMU to
PTRACE_{SINGLESTEP,SYSCALL}, to free TIF_SYSCALL_EMU from double use as a
preparation for PTRACE_SYSEMU_SINGLESTEP extension, without changing the
behavior of the host kernel.
Si
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
This adds the "skas0" parameter to force skas0 operation on SKAS3 host and
shows which operating mode has been selected.
Not intrusive, much more trivial than Bodo's patch, to merge for 2.6.13.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso
24 matches
Mail list logo