Commit 834bf64a authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Linus Torvalds

[PATCH] s390 (1/7): base patch.

 - Makefile fix: default make target builds the kernel image.
 - Add export statement for cpcmd.
 - Add tgkill system call.
 - Reserve system call number for vserver.
parent ad4341e7
......@@ -48,20 +48,18 @@ libs-y += arch/$(ARCH)/lib/
drivers-y += drivers/s390/
drivers-$(CONFIG_MATHEMU) += arch/$(ARCH)/math-emu/
boot := arch/$(ARCH)/boot
makeboot =$(Q)$(MAKE) -f scripts/Makefile.build obj=arch/$(ARCH)/boot $(1)
all: image listing
listing image: vmlinux
$(call makeboot,arch/$(ARCH)/boot/$@)
all: image
install: vmlinux
$(call makeboot, $@)
$(Q)$(MAKE) $(build)=$(boot) $@
archclean:
$(Q)$(MAKE) -f scripts/Makefile.clean obj=arch/$(ARCH)/boot
image: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
archclean:
$(Q)$(MAKE) $(clean)=$(boot)
prepare: include/asm-$(ARCH)/offsets.h
......
......@@ -6,7 +6,7 @@ COMPILE_VERSION := __linux_compile_version_id__`hostname | \
tr -c '[0-9A-Za-z]' '_'`__`date | \
tr -c '[0-9A-Za-z]' '_'`_t
EXTRA_CFLAGS := -DCOMPILE_VERSION=$(COMPILE_VERSION) -gstabs -I .
EXTRA_CFLAGS := -DCOMPILE_VERSION=$(COMPILE_VERSION) -gstabs -I.
targets := image
......
......@@ -10,6 +10,7 @@
#include <linux/smp.h>
#include <linux/interrupt.h>
#include <asm/checksum.h>
#include <asm/cpcmd.h>
#include <asm/delay.h>
#include <asm/pgalloc.h>
#include <asm/setup.h>
......@@ -72,3 +73,5 @@ EXPORT_SYMBOL(console_mode);
EXPORT_SYMBOL(console_device);
EXPORT_SYMBOL_NOVERS(do_call_softirq);
EXPORT_SYMBOL(sys_wait4);
EXPORT_SYMBOL(cpcmd);
......@@ -249,7 +249,7 @@ SYSCALL(sys_tkill,sys_tkill,sys_tkill)
SYSCALL(sys_futex,sys_futex,compat_sys_futex_wrapper)
SYSCALL(sys_sched_setaffinity,sys_sched_setaffinity,sys32_sched_setaffinity_wrapper)
SYSCALL(sys_sched_getaffinity,sys_sched_getaffinity,sys32_sched_getaffinity_wrapper) /* 240 */
NI_SYSCALL
SYSCALL(sys_tgkill,sys_tgkill,sys_tgkill)
NI_SYSCALL /* reserved for TUX */
SYSCALL(sys_io_setup,sys_io_setup,sys_ni_syscall)
SYSCALL(sys_io_destroy,sys_io_destroy,sys_ni_syscall)
......@@ -268,6 +268,7 @@ SYSCALL(sys_timer_gettime,sys_timer_gettime,sys_ni_syscall)
SYSCALL(sys_timer_getoverrun,sys_timer_getoverrun,sys_ni_syscall)
SYSCALL(sys_timer_delete,sys_timer_delete,sys_ni_syscall)
SYSCALL(sys_clock_settime,sys_clock_settime,sys_ni_syscall)
SYSCALL(sys_clock_gettime,sys_clock_gettime,sys_ni_syscall)
SYSCALL(sys_clock_gettime,sys_clock_gettime,sys_ni_syscall) /* 260 */
SYSCALL(sys_clock_getres,sys_clock_getres,sys_ni_syscall)
SYSCALL(sys_clock_nanosleep,sys_clock_nanosleep,sys_ni_syscall)
NI_SYSCALL /* reserved for vserver */
......@@ -266,7 +266,7 @@ void __init time_init(void)
jiffies_timer_cc = init_timer_cc - jiffies_64 * CLK_TICKS_PER_JIFFY;
/* set xtime */
xtime_cc = init_timer_cc;
xtime_cc = init_timer_cc + CLK_TICKS_PER_JIFFY;
set_time_cc = init_timer_cc - 0x8126d60e46000000LL +
(0x3c26700LL*1000000*4096);
tod_to_timeval(set_time_cc, &xtime);
......
......@@ -232,9 +232,7 @@
#define __NR_futex 238
#define __NR_sched_setaffinity 239
#define __NR_sched_getaffinity 240
/*
* Number 241 is currently unused
*/
#define __NR_tgkill 241
/*
* Number 242 is reserved for tux
*/
......@@ -258,8 +256,11 @@
#define __NR_clock_gettime (__NR_timer_create+6)
#define __NR_clock_getres (__NR_timer_create+7)
#define __NR_clock_nanosleep (__NR_timer_create+8)
/*
* Number 263 is reserved for vserver
*/
#define NR_syscalls 263
#define NR_syscalls 264
/*
* There are some system calls that are not present on 64 bit, some
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment