Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106130
b: refs/heads/master
c: fc532f8
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Lynch authored and Benjamin Herrenschmidt committed Jul 25, 2008
1 parent d7950ea commit 8623f77
Show file tree
Hide file tree
Showing 41 changed files with 138 additions and 108 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b35fa86e47f83db27056b202463d926ff0a2c8f
refs/heads/master: fc532f810832beb3306b42526a78f411972281c7
1 change: 0 additions & 1 deletion trunk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,6 @@ modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux)
$(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order
@echo ' Building modules, stage 2.';
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modbuild


# Target to prepare building external modules
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/ia64/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -1691,12 +1691,6 @@ sys_call_table:
data8 sys_timerfd_create // 1310
data8 sys_timerfd_settime
data8 sys_timerfd_gettime
data8 sys_signalfd4
data8 sys_eventfd2
data8 sys_epoll_create1 // 1315
data8 sys_dup3
data8 sys_pipe2
data8 sys_inotify_init1

.org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls
#endif /* __IA64_ASM_PARAVIRTUALIZED_NATIVE */
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kernel/cputable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1660,8 +1660,8 @@ struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr)
* Set the base platform string once; assumes
* we're called with real pvr first.
*/
if (powerpc_base_platform == NULL)
powerpc_base_platform = t->platform;
if (*PTRRELOC(&powerpc_base_platform) == NULL)
*PTRRELOC(&powerpc_base_platform) = t->platform;

#if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE)
/* ppc64 and booke expect identify_cpu to also call
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/sparc/kernel/systbls.S
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@ sys_call_table:
/*300*/ .long sys_set_robust_list, sys_get_robust_list, sys_migrate_pages, sys_mbind, sys_get_mempolicy
/*305*/ .long sys_set_mempolicy, sys_kexec_load, sys_move_pages, sys_getcpu, sys_epoll_pwait
/*310*/ .long sys_utimensat, sys_signalfd, sys_timerfd_create, sys_eventfd, sys_fallocate
/*315*/ .long sys_timerfd_settime, sys_timerfd_gettime, sys_signalfd4, sys_eventfd2, sys_epoll_create1
/*320*/ .long sys_dup3, sys_pipe2, sys_inotify_init1
/*315*/ .long sys_timerfd_settime, sys_timerfd_gettime
6 changes: 2 additions & 4 deletions trunk/arch/sparc64/kernel/systbls.S
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ sys_call_table32:
/*300*/ .word compat_sys_set_robust_list, compat_sys_get_robust_list, compat_sys_migrate_pages, compat_sys_mbind, compat_sys_get_mempolicy
.word compat_sys_set_mempolicy, compat_sys_kexec_load, compat_sys_move_pages, sys_getcpu, compat_sys_epoll_pwait
/*310*/ .word compat_sys_utimensat, compat_sys_signalfd, sys_timerfd_create, sys_eventfd, compat_sys_fallocate
.word compat_sys_timerfd_settime, compat_sys_timerfd_gettime, compat_sys_signalfd4, sys_eventfd2, sys_epoll_create1
/*320*/ .word sys_dup3, sys_pipe2, sys_inotify_init1
.word compat_sys_timerfd_settime, compat_sys_timerfd_gettime

#endif /* CONFIG_COMPAT */

Expand Down Expand Up @@ -155,5 +154,4 @@ sys_call_table:
/*300*/ .word sys_set_robust_list, sys_get_robust_list, sys_migrate_pages, sys_mbind, sys_get_mempolicy
.word sys_set_mempolicy, sys_kexec_load, sys_move_pages, sys_getcpu, sys_epoll_pwait
/*310*/ .word sys_utimensat, sys_signalfd, sys_timerfd_create, sys_eventfd, sys_fallocate
.word sys_timerfd_settime, sys_timerfd_gettime, sys_signalfd4, sys_eventfd2, sys_epoll_create1
/*320*/ .word sys_dup3, sys_pipe2, sys_inotify_init1
.word sys_timerfd_settime, sys_timerfd_gettime
8 changes: 0 additions & 8 deletions trunk/drivers/char/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ config VT
If unsure, say Y, or else you won't be able to do much with your new
shiny Linux system :-)

config CONSOLE_TRANSLATIONS
depends on VT
default y
bool "Enable character translations in console" if EMBEDDED
---help---
This enables support for font mapping and Unicode translation
on virtual consoles.

config VT_CONSOLE
bool "Support for console on virtual terminal" if EMBEDDED
depends on VT
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/char/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ obj-y += mem.o random.o tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o
obj-$(CONFIG_LEGACY_PTYS) += pty.o
obj-$(CONFIG_UNIX98_PTYS) += pty.o
obj-y += misc.o
obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o selection.o keyboard.o
obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o
obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o consolemap.o \
consolemap_deftbl.o selection.o keyboard.o
obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o
obj-$(CONFIG_AUDIT) += tty_audit.o
obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co
c = 0xfffd;
tc = c;
} else { /* no utf or alternate charset mode */
tc = vc_translate(vc, c);
tc = vc->vc_translate[vc->vc_toggle_meta ? (c | 0x80) : c];
}

param.c = tc;
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/asm-alpha/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_ALPHA_H
#define __LINUX_KVM_ALPHA_H

/* alpha does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-arm/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_ARM_H
#define __LINUX_KVM_ARM_H

/* arm does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-avr32/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_AVR32_H
#define __LINUX_KVM_AVR32_H

/* avr32 does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-blackfin/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_BLACKFIN_H
#define __LINUX_KVM_BLACKFIN_H

/* blackfin does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-cris/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_CRIS_H
#define __LINUX_KVM_CRIS_H

/* cris does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-frv/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_FRV_H
#define __LINUX_KVM_FRV_H

/* frv does not support KVM */

#endif
2 changes: 0 additions & 2 deletions trunk/include/asm-generic/Kbuild.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/kvm.h),)
header-y += kvm.h
endif

ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),)
unifdef-y += a.out.h
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/asm-h8300/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_H8300_H
#define __LINUX_KVM_H8300_H

/* h8300 does not support KVM */

#endif
8 changes: 1 addition & 7 deletions trunk/include/asm-ia64/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,17 +302,11 @@
#define __NR_timerfd_create 1310
#define __NR_timerfd_settime 1311
#define __NR_timerfd_gettime 1312
#define __NR_signalfd4 1313
#define __NR_eventfd2 1314
#define __NR_epoll_create1 1315
#define __NR_dup3 1316
#define __NR_pipe2 1317
#define __NR_inotify_init1 1318

#ifdef __KERNEL__


#define NR_syscalls 295 /* length of syscall table */
#define NR_syscalls 289 /* length of syscall table */

/*
* The following defines stop scripts/checksyscalls.sh from complaining about
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/asm-m32r/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_M32R_H
#define __LINUX_KVM_M32R_H

/* m32r does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-m68k/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_M68K_H
#define __LINUX_KVM_M68K_H

/* m68k does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-m68knommu/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_M68KNOMMU_H
#define __LINUX_KVM_M68KNOMMU_H

/* m68knommu does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-mips/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_MIPS_H
#define __LINUX_KVM_MIPS_H

/* mips does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-mn10300/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_MN10300_H
#define __LINUX_KVM_MN10300_H

/* mn10300 does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-parisc/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_PARISC_H
#define __LINUX_KVM_PARISC_H

/* parisc does not support KVM */

#endif
1 change: 1 addition & 0 deletions trunk/include/asm-s390/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ header-y += tape390.h
header-y += ucontext.h
header-y += vtoc.h
header-y += zcrypt.h
header-y += kvm.h
header-y += chsc.h

unifdef-y += cmb.h
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/asm-sh/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_SH_H
#define __LINUX_KVM_SH_H

/* sh does not support KVM */

#endif
6 changes: 6 additions & 0 deletions trunk/include/asm-sparc/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_SPARC_H
#define __LINUX_KVM_SPARC_H

/* sparc does not support KVM */

#endif
8 changes: 1 addition & 7 deletions trunk/include/asm-sparc/unistd_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,8 @@
#define __NR_fallocate 314
#define __NR_timerfd_settime 315
#define __NR_timerfd_gettime 316
#define __NR_signalfd4 317
#define __NR_eventfd2 318
#define __NR_epoll_create1 319
#define __NR_dup3 320
#define __NR_pipe2 321
#define __NR_inotify_init1 322

#define NR_SYSCALLS 323
#define NR_SYSCALLS 317

/* Sparc 32-bit only has the "setresuid32", "getresuid32" variants,
* it never had the plain ones and there is no value to adding those
Expand Down
8 changes: 1 addition & 7 deletions trunk/include/asm-sparc/unistd_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,8 @@
#define __NR_fallocate 314
#define __NR_timerfd_settime 315
#define __NR_timerfd_gettime 316
#define __NR_signalfd4 317
#define __NR_eventfd2 318
#define __NR_epoll_create1 319
#define __NR_dup3 320
#define __NR_pipe2 321
#define __NR_inotify_init1 322

#define NR_SYSCALLS 323
#define NR_SYSCALLS 317

#ifdef __KERNEL__
#define __ARCH_WANT_IPC_PARSE_VERSION
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-sparc64/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-sparc/kvm.h>
6 changes: 6 additions & 0 deletions trunk/include/asm-um/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_UM_H
#define __LINUX_KVM_UM_H

/* um does not support KVM */

#endif
1 change: 1 addition & 0 deletions trunk/include/asm-x86/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include include/asm-generic/Kbuild.asm
header-y += boot.h
header-y += bootparam.h
header-y += debugreg.h
header-y += kvm.h
header-y += ldt.h
header-y += msr-index.h
header-y += prctl.h
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/asm-xtensa/kvm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __LINUX_KVM_XTENSA_H
#define __LINUX_KVM_XTENSA_H

/* xtensa does not support KVM */

#endif
2 changes: 0 additions & 2 deletions trunk/include/linux/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,7 @@ unifdef-y += kd.h
unifdef-y += kernelcapi.h
unifdef-y += kernel.h
unifdef-y += keyboard.h
ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/kvm.h),)
unifdef-y += kvm.h
endif
unifdef-y += llc.h
unifdef-y += loop.h
unifdef-y += lp.h
Expand Down
9 changes: 5 additions & 4 deletions trunk/include/linux/bootmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,17 @@ extern void *__alloc_bootmem_low_node(pg_data_t *pgdat,
__alloc_bootmem(x, PAGE_SIZE, __pa(MAX_DMA_ADDRESS))
#define alloc_bootmem_low_pages(x) \
__alloc_bootmem_low(x, PAGE_SIZE, 0)
#endif /* !CONFIG_HAVE_ARCH_BOOTMEM_NODE */

extern int reserve_bootmem_generic(unsigned long addr, unsigned long size,
int flags);

#define alloc_bootmem_node(pgdat, x) \
__alloc_bootmem_node(pgdat, x, SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
#define alloc_bootmem_pages_node(pgdat, x) \
__alloc_bootmem_node(pgdat, x, PAGE_SIZE, __pa(MAX_DMA_ADDRESS))
#define alloc_bootmem_low_pages_node(pgdat, x) \
__alloc_bootmem_low_node(pgdat, x, PAGE_SIZE, 0)
#endif /* !CONFIG_HAVE_ARCH_BOOTMEM_NODE */

extern int reserve_bootmem_generic(unsigned long addr, unsigned long size,
int flags);

extern void *alloc_bootmem_section(unsigned long size,
unsigned long section_nr);
Expand Down
14 changes: 0 additions & 14 deletions trunk/include/linux/consolemap.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
*
* Interface between console.c, selection.c and consolemap.c
*/
#ifndef __LINUX_CONSOLEMAP_H__
#define __LINUX_CONSOLEMAP_H__

#define LAT1_MAP 0
#define GRAF_MAP 1
#define IBMPC_MAP 2
#define USER_MAP 3

#include <linux/types.h>

#ifdef CONFIG_CONSOLE_TRANSLATIONS
struct vc_data;

extern u16 inverse_translate(struct vc_data *conp, int glyph, int use_unicode);
Expand All @@ -22,13 +18,3 @@ extern int conv_uni_to_pc(struct vc_data *conp, long ucs);
extern u32 conv_8bit_to_uni(unsigned char c);
extern int conv_uni_to_8bit(u32 uni);
void console_map_init(void);
#else
#define inverse_translate(conp, glyph, uni) ((uint16_t)glyph)
#define set_translate(m, vc) ((unsigned short *)NULL)
#define conv_uni_to_pc(conp, ucs) ((int) (ucs > 0xff ? -1: ucs))
#define conv_8bit_to_uni(c) ((uint32_t)(c))
#define conv_uni_to_8bit(c) ((int) ((c) & 0xff))
#define console_map_init(c) do { ; } while (0)
#endif /* CONFIG_CONSOLE_TRANSLATIONS */

#endif /* __LINUX_CONSOLEMAP_H__ */
2 changes: 1 addition & 1 deletion trunk/include/linux/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ asmlinkage long sys_bind(int, struct sockaddr __user *, int);
asmlinkage long sys_connect(int, struct sockaddr __user *, int);
asmlinkage long sys_accept(int, struct sockaddr __user *, int __user *);
asmlinkage long sys_paccept(int, struct sockaddr __user *, int __user *,
const __user sigset_t *, size_t, int);
const sigset_t *, size_t, int);
asmlinkage long sys_getsockname(int, struct sockaddr __user *, int __user *);
asmlinkage long sys_getpeername(int, struct sockaddr __user *, int __user *);
asmlinkage long sys_send(int, void __user *, size_t, unsigned);
Expand Down
Loading

0 comments on commit 8623f77

Please sign in to comment.