1. 27 7月, 2008 1 次提交
  2. 26 7月, 2008 1 次提交
  3. 24 7月, 2008 1 次提交
  4. 18 7月, 2008 27 次提交
    • S
      sparc: join the remaining header files · f5e706ad
      Sam Ravnborg 提交于
      With this commit all sparc64 header files are moved to asm-sparc.
      The remaining files (71 files) were too different to be trivially
      merged so divide them up in a _32.h and a _64.h file which
      are both included from the file with no bit size.
      
      The following script were used:
      cd include
      FILES=`wc -l asm-sparc64/*h | grep -v '^     1' | cut -b 20-`
      
      for FILE in ${FILES}; do
        echo $FILE:
        BASE=`echo $FILE | cut -d '.' -f 1`
        FN32=${BASE}_32.h
        FN64=${BASE}_64.h
        GUARD=___ASM_SPARC_`echo $BASE | tr '-' '_' | tr [:lower:] [:upper:]`_H
        git mv asm-sparc/$FILE asm-sparc/$FN32
        git mv asm-sparc64/$FILE asm-sparc/$FN64
        echo git mv done
        printf "#ifndef %s\n" $GUARD                             >   asm-sparc/$FILE
        printf "#define %s\n" $GUARD                             >>  asm-sparc/$FILE
        printf "#if defined(__sparc__) && defined(__arch64__)\n" >>  asm-sparc/$FILE
        printf "#include <asm-sparc/%s>\n" $FN64                 >>  asm-sparc/$FILE
        printf "#else\n"                                         >>  asm-sparc/$FILE
        printf "#include <asm-sparc/%s>\n" $FN32                 >>  asm-sparc/$FILE
        printf "#endif\n"                                        >>  asm-sparc/$FILE
        printf "#endif\n"                                        >>  asm-sparc/$FILE
        git add asm-sparc/$FILE
        echo new file done
        printf "#include <asm-sparc/%s>\n" $FILE                 >  asm-sparc64/$FILE
        git add asm-sparc64/$FILE
        echo sparc64 file done
      done
      
      The guard contains three '_' to avoid conflict with existing guards.
      In additing the two Kbuild files are emptied to avoid breaking
      headers_* targets.
      We will reintroduce the exported header files when the necessary
      kbuild changes are merged.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f5e706ad
    • S
      sparc: merge header files with trivial differences · 5e3609f6
      Sam Ravnborg 提交于
      A manual inspection revealed that the following headerfiles
      contained only trivial differences:
      hw_irq.h idprom.h kmap_types.h kvm.h spinlock_types.h sunbpp.h unaligned.h
      
      The only noteworthy change are that sparc64 had a volatile
      qualifer that sparc missed in spinlock_types.h.
      
      In addition a few comments were updated.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      5e3609f6
    • S
      sparc: when header files are equal use asm-sparc version · 075ae525
      Sam Ravnborg 提交于
      Used the following script to find equal header files:
      SPARC64=`ls asm-sparc64`
      for FILE in ${SPARC64}; do
      	cmp -s asm-sparc/$FILE asm-sparc64/$FILE;
      	if [ $? = 0 ]; then
      		printf "#include <asm-sparc/%s>\n" $FILE > asm-sparc64/$FILE
      	fi
      done
      
      A few of the equal files are a simple include from
      asm-generic, but by including the file from asm-sparc
      we know they are equal for sparc and sparc64.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      075ae525
    • S
      sparc: copy sparc64 specific files to asm-sparc · a00736e9
      Sam Ravnborg 提交于
      Used the following script to copy the files:
      cd include
      set -e
      SPARC64=`ls asm-sparc64`
      for FILE in ${SPARC64}; do
      	if [ -f asm-sparc/$FILE ]; then
      		echo $FILE exist in asm-sparc
      	else
      		git mv asm-sparc64/$FILE asm-sparc/$FILE
      		printf "#include <asm-sparc/$FILE>\n" > asm-sparc64/$FILE
      		git add asm-sparc64/$FILE
      	fi
      done
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      a00736e9
    • S
      sparc: Merge asm-sparc{,64}/asi.h · bdc3135a
      Sam Ravnborg 提交于
      Joined the two files as they contain distinct definitions.
      Inspired by patch from: Adrian Bunk <bunk@kernel.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Adrian Bunk <bunk@kernel.org>
      bdc3135a
    • S
      sparc: Merge asm-sparc{,64}/types.h · b444b9a5
      Sam Ravnborg 提交于
      Copy content of sparc64 file to sparc file.
      There is only minimal possibilities for further unification.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      b444b9a5
    • S
      sparc: Merge asm-sparc{,64}/termios.h · c6d1b0e3
      Sam Ravnborg 提交于
      Bring the commit e55c57e0
      ("[SPARC64]: Report any user access faults in termios accessors")
      over to sparc when unifying the two files.
      The diff was manually inspected to contain no
      other relevant changes.
      
      This unification therefore changes functionality of sparc.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      c6d1b0e3
    • S
      sparc: Merge asm-sparc{,64}/termbits.h · 943d0e86
      Sam Ravnborg 提交于
      The type of tcflag_t differs from 32 and 64 bit.
      For 32 bit it is long
      For 64 bit it is int
      
      Altough these have same size then I was not sure that
      it was OK to change the 64 bit version to long as this
      is part of the ABI so it was made conditional.
      
      :$ diff -u include/asm-sparc/termbits.h include/asm-sparc64/termbits.h
      :-- include/asm-sparc/termbits.h	2008-06-13 06:42:07.000000000 +0200
      :++ include/asm-sparc64/termbits.h	2008-06-13 06:42:07.000000000 +0200
      :@@ -1,11 +1,11 @@
      :-#ifndef _SPARC_TERMBITS_H
      :-#define _SPARC_TERMBITS_H
      :+#ifndef _SPARC64_TERMBITS_H
      :+#define _SPARC64_TERMBITS_H
      :
      : #include <linux/posix_types.h>
      :
      : typedef unsigned char   cc_t;
      : typedef unsigned int    speed_t;
      :-typedef unsigned long   tcflag_t;
      :+typedef unsigned int    tcflag_t;
      :
      : #define NCC 8
      : struct termio {
      :@@ -102,7 +102,7 @@
      : #define IXANY	0x00000800
      : #define IXOFF	0x00001000
      : #define IMAXBEL	0x00002000
      :-#define IUTF8   0x00004000
      :+#define IUTF8	0x00004000
      :
      : /* c_oflag bits */
      : #define OPOST	0x00000001
      :@@ -171,7 +171,6 @@
      : #define HUPCL	  0x00000400
      : #define CLOCAL	  0x00000800
      : #define CBAUDEX   0x00001000
      :-/* We'll never see these speeds with the Zilogs, but for completeness... */
      : #define  BOTHER   0x00001000
      : #define  B57600   0x00001001
      : #define  B115200  0x00001002
      :@@ -199,7 +198,7 @@
      : #define B3500000  0x00001012
      : #define B4000000  0x00001013  */
      : #define CIBAUD	  0x100f0000  /* input baud rate (not used) */
      :-#define CMSPAR	  0x40000000  /* mark or space (stick) parity */
      :+#define CMSPAR    0x40000000  /* mark or space (stick) parity */
      : #define CRTSCTS	  0x80000000  /* flow control */
      :
      : #define IBSHIFT	  16		/* Shift from CBAUD to CIBAUD */
      :@@ -258,4 +257,4 @@
      : #define	TCSADRAIN	1
      : #define	TCSAFLUSH	2
      :
      :-#endif /* !(_SPARC_TERMBITS_H) */
      :+#endif /* !(_SPARC64_TERMBITS_H) */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      943d0e86
    • S
      sparc: Merge asm-sparc{,64}/setup.h · 7c4285d8
      Sam Ravnborg 提交于
      COMMAND_LINE_SIZE differ for 32 and 64 bit.
      256 versus 2048
      
      :$ diff -u include/asm-sparc/setup.h include/asm-sparc64/setup.h
      :-- include/asm-sparc/setup.h	2008-06-13 06:42:07.000000000 +0200
      :++ include/asm-sparc64/setup.h	2008-06-13 06:42:07.000000000 +0200
      :@@ -2,9 +2,9 @@
      :  *	Just a place holder.
      :  */
      :
      :-#ifndef _SPARC_SETUP_H
      :-#define _SPARC_SETUP_H
      :+#ifndef _SPARC64_SETUP_H
      :+#define _SPARC64_SETUP_H
      :
      :-#define COMMAND_LINE_SIZE	256
      :+#define COMMAND_LINE_SIZE	2048
      :
      :-#endif /* _SPARC_SETUP_H */
      :+#endif /* _SPARC64_SETUP_H */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      7c4285d8
    • S
      sparc: Merge asm-sparc{,64}/resource.h · 68a61c8d
      Sam Ravnborg 提交于
      RLIM_INFINITY differ from 32 and 64 bit.
      The rest is equal.
      
      :$ diff -u include/asm-sparc/resource.h include/asm-sparc64/resource.h
      :-- include/asm-sparc/resource.h	2008-06-13 06:46:39.000000000 +0200
      :++ include/asm-sparc64/resource.h	2008-06-13 06:46:39.000000000 +0200
      :@@ -1,11 +1,11 @@
      : /*
      :  * resource.h: Resource definitions.
      :  *
      :- * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
      :+ * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
      :  */
      :
      :-#ifndef _SPARC_RESOURCE_H
      :-#define _SPARC_RESOURCE_H
      :+#ifndef _SPARC64_RESOURCE_H
      :+#define _SPARC64_RESOURCE_H
      :
      : /*
      :  * These two resource limit IDs have a Sparc/Linux-specific ordering,
      :@@ -14,13 +14,6 @@
      : #define RLIMIT_NOFILE		6	/* max number of open files */
      : #define RLIMIT_NPROC		7	/* max number of processes */
      :
      :-/*
      :- * SuS says limits have to be unsigned.
      :- * We make this unsigned, but keep the
      :- * old value for compatibility:
      :- */
      :-#define RLIM_INFINITY		0x7fffffff
      :-
      : #include <asm-generic/resource.h>
      :
      :-#endif /* !(_SPARC_RESOURCE_H) */
      :+#endif /* !(_SPARC64_RESOURCE_H) */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      68a61c8d
    • S
      sparc: Merge asm-sparc{,64}/fbio.h · 7acc483d
      Sam Ravnborg 提交于
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      7acc483d
    • S
      sparc: Merge asm-sparc{,64}/mman.h · f92ffa12
      Sam Ravnborg 提交于
      Renaming the function sparc64_mmap_check() to
      sparc_mmap_check() was enough to make the two
      header files identical.
      
      :$ diff -u include/asm-sparc/mman.h include/asm-sparc64/mman.h
      :-- include/asm-sparc/mman.h	2008-06-13 06:46:39.000000000 +0200
      :++ include/asm-sparc64/mman.h	2008-06-13 06:46:39.000000000 +0200
      :@@ -1,5 +1,5 @@
      :-#ifndef __SPARC_MMAN_H__
      :-#define __SPARC_MMAN_H__
      :+#ifndef __SPARC64_MMAN_H__
      :+#define __SPARC64_MMAN_H__
      :
      : #include <asm-generic/mman.h>
      :
      :@@ -23,9 +23,9 @@
      :
      : #ifdef __KERNEL__
      : #ifndef __ASSEMBLY__
      :-#define arch_mmap_check(addr,len,flags)	sparc_mmap_check(addr,len)
      :-int sparc_mmap_check(unsigned long addr, unsigned long len);
      :+#define arch_mmap_check(addr,len,flags)	sparc64_mmap_check(addr,len)
      :+int sparc64_mmap_check(unsigned long addr, unsigned long len);
      : #endif
      : #endif
      :
      :-#endif /* __SPARC_MMAN_H__ */
      :+#endif /* __SPARC64_MMAN_H__ */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      f92ffa12
    • S
      sparc: Merge asm-sparc{,64}/shmbuf.h · 2d141962
      Sam Ravnborg 提交于
      Padding in the shmbuf structure made conditional
      as only 32 bit sparc did so.
      
      :$ diff -u include/asm-sparc/shmbuf.h include/asm-sparc64/shmbuf.h
      :-- include/asm-sparc/shmbuf.h	2008-06-13 06:42:07.000000000 +0200
      :++ include/asm-sparc64/shmbuf.h	2008-06-13 06:42:07.000000000 +0200
      :@@ -1,23 +1,19 @@
      :-#ifndef _SPARC_SHMBUF_H
      :-#define _SPARC_SHMBUF_H
      :+#ifndef _SPARC64_SHMBUF_H
      :+#define _SPARC64_SHMBUF_H
      :
      : /*
      :- * The shmid64_ds structure for sparc architecture.
      :+ * The shmid64_ds structure for sparc64 architecture.
      :  * Note extra padding because this structure is passed back and forth
      :  * between kernel and user space.
      :  *
      :  * Pad space is left for:
      :- * - 64-bit time_t to solve y2038 problem
      :- * - 2 miscellaneous 32-bit values
      :+ * - 2 miscellaneous 64-bit values
      :  */
      :
      : struct shmid64_ds {
      : 	struct ipc64_perm	shm_perm;	/* operation perms */
      :-	unsigned int		__pad1;
      : 	__kernel_time_t		shm_atime;	/* last attach time */
      :-	unsigned int		__pad2;
      : 	__kernel_time_t		shm_dtime;	/* last detach time */
      :-	unsigned int		__pad3;
      : 	__kernel_time_t		shm_ctime;	/* last change time */
      : 	size_t			shm_segsz;	/* size of segment (bytes) */
      : 	__kernel_pid_t		shm_cpid;	/* pid of creator */
      :@@ -39,4 +35,4 @@
      : 	unsigned long	__unused4;
      : };
      :
      :-#endif /* _SPARC_SHMBUF_H */
      :+#endif /* _SPARC64_SHMBUF_H */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      2d141962
    • S
      sparc: Merge asm-sparc{,64}/sembuf.h · fcb07081
      Sam Ravnborg 提交于
      Padding in the sembuf structure made conditional
      as only 32 bit sparc did so.
      
      :$ diff -u include/asm-sparc/sembuf.h include/asm-sparc64/sembuf.h
      :-- include/asm-sparc/sembuf.h	2008-06-13 06:42:07.000000000 +0200
      :++ include/asm-sparc64/sembuf.h	2008-06-13 06:42:07.000000000 +0200
      :@@ -1,21 +1,18 @@
      :-#ifndef _SPARC_SEMBUF_H
      :-#define _SPARC_SEMBUF_H
      :+#ifndef _SPARC64_SEMBUF_H
      :+#define _SPARC64_SEMBUF_H
      :
      : /*
      :- * The semid64_ds structure for sparc architecture.
      :+ * The semid64_ds structure for sparc64 architecture.
      :  * Note extra padding because this structure is passed back and forth
      :  * between kernel and user space.
      :  *
      :  * Pad space is left for:
      :- * - 64-bit time_t to solve y2038 problem
      :- * - 2 miscellaneous 32-bit values
      :+ * - 2 miscellaneous 64-bit values
      :  */
      :
      : struct semid64_ds {
      : 	struct ipc64_perm sem_perm;		/* permissions .. see ipc.h */
      :-	unsigned int	__pad1;
      : 	__kernel_time_t	sem_otime;		/* last semop time */
      :-	unsigned int	__pad2;
      : 	__kernel_time_t	sem_ctime;		/* last change time */
      : 	unsigned long	sem_nsems;		/* no. of semaphores in array */
      : 	unsigned long	__unused1;
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      fcb07081
    • S
      sparc: Merge asm-sparc{,64}/msgbuf.h · 100b10d7
      Sam Ravnborg 提交于
      Padding from 32 bit sparc kept using preprocessor magic
      
      :$ diff -u include/asm-sparc/msgbuf.h include/asm-sparc64/msgbuf.h
      :-- include/asm-sparc/msgbuf.h	2008-06-13 06:42:07.000000000 +0200
      :++ include/asm-sparc64/msgbuf.h	2008-06-13 06:42:07.000000000 +0200
      :@@ -7,17 +7,13 @@
      :  * between kernel and user space.
      :  *
      :  * Pad space is left for:
      :- * - 64-bit time_t to solve y2038 problem
      :- * - 2 miscellaneous 32-bit values
      :+ * - 2 miscellaneous 64-bit values
      :  */
      :
      : struct msqid64_ds {
      : 	struct ipc64_perm msg_perm;
      :-	unsigned int   __pad1;
      : 	__kernel_time_t msg_stime;	/* last msgsnd time */
      :-	unsigned int   __pad2;
      : 	__kernel_time_t msg_rtime;	/* last msgrcv time */
      :-	unsigned int   __pad3;
      : 	__kernel_time_t msg_ctime;	/* last change time */
      : 	unsigned long  msg_cbytes;	/* current number of bytes on queue */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      100b10d7
    • S
      sparc: Merge asm-sparc{,64}/fcntl.h · 6d1f4b88
      Sam Ravnborg 提交于
      The definition of O_NDELAY differed - the rest was equal
      
      :$ diff -u include/asm-sparc/fcntl.h include/asm-sparc64/fcntl.h
      :-- include/asm-sparc/fcntl.h	2008-06-13 06:46:39.000000000 +0200
      :++ include/asm-sparc64/fcntl.h	2008-06-13 06:46:39.000000000 +0200
      :@@ -1,8 +1,9 @@
      :-#ifndef _SPARC_FCNTL_H
      :-#define _SPARC_FCNTL_H
      :+#ifndef _SPARC64_FCNTL_H
      :+#define _SPARC64_FCNTL_H
      :
      : /* open/fcntl - O_SYNC is only implemented on blocks devices and on files
      :    located on an ext2 file system */
      :+#define O_NDELAY	0x0004
      : #define O_APPEND	0x0008
      : #define FASYNC		0x0040	/* fcntl, for BSD compatibility */
      : #define O_CREAT		0x0200	/* not fcntl */
      :@@ -10,7 +11,6 @@
      : #define O_EXCL		0x0800	/* not fcntl */
      : #define O_SYNC		0x2000
      : #define O_NONBLOCK	0x4000
      :-#define O_NDELAY	(0x0004 | O_NONBLOCK)
      : #define O_NOCTTY	0x8000	/* not fcntl */
      : #define O_LARGEFILE	0x40000
      : #define O_DIRECT        0x100000 /* direct disk access hint */
      :@@ -29,8 +29,7 @@
      : #define F_UNLCK		3
      :
      : #define __ARCH_FLOCK_PAD	short __unused;
      :-#define __ARCH_FLOCK64_PAD	short __unused;
      :
      : #include <asm-generic/fcntl.h>
      :
      :-#endif
      :+#endif /* !(_SPARC64_FCNTL_H) */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      6d1f4b88
    • S
      sparc: Merge asm-sparc{,64}/sockios.h · e880e870
      Sam Ravnborg 提交于
      :$ diff -u include/asm-sparc/sockios.h include/asm-sparc64/sockios.h
      :-- include/asm-sparc/sockios.h	2008-06-13 06:42:07.000000000 +0200
      :++ include/asm-sparc64/sockios.h	2008-06-13 06:42:07.000000000 +0200
      :@@ -1,5 +1,5 @@
      :-#ifndef _ASM_SPARC_SOCKIOS_H
      :-#define _ASM_SPARC_SOCKIOS_H
      :+#ifndef _ASM_SPARC64_SOCKIOS_H
      :+#define _ASM_SPARC64_SOCKIOS_H
      :
      : /* Socket-level I/O control calls. */
      : #define FIOSETOWN 	0x8901
      :@@ -10,5 +10,5 @@
      : #define SIOCGSTAMP	0x8906		/* Get stamp (timeval) */
      : #define SIOCGSTAMPNS	0x8907		/* Get stamp (timespec) */
      :
      :-#endif /* !(_ASM_SPARC_SOCKIOS_H) */
      :+#endif /* !(_ASM_SPARC64_SOCKIOS_H) */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      e880e870
    • S
      sparc: Merge asm-sparc{,64}/socket.h · c8b8be54
      Sam Ravnborg 提交于
      :$ diff -u include/asm-sparc/socket.h include/asm-sparc64/socket.h
      :-- include/asm-sparc/socket.h	2008-06-13 06:46:39.000000000 +0200
      :++ include/asm-sparc64/socket.h	2008-06-13 06:46:39.000000000 +0200
      :@@ -48,11 +48,10 @@
      : #define SO_TIMESTAMPNS		0x0021
      : #define SCM_TIMESTAMPNS		SO_TIMESTAMPNS
      :
      :-#define SO_MARK			0x0022
      :-
      : /* Security levels - as per NRL IPv6 - don't actually do anything */
      : #define SO_SECURITY_AUTHENTICATION		0x5001
      : #define SO_SECURITY_ENCRYPTION_TRANSPORT	0x5002
      : #define SO_SECURITY_ENCRYPTION_NETWORK		0x5004
      :
      :+#define SO_MARK			0x0022
      : #endif /* _ASM_SOCKET_H */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      c8b8be54
    • S
      sparc: Merge asm-sparc{,64}/poll.h · 62e612f0
      Sam Ravnborg 提交于
      :$ diff -u include/asm-sparc/poll.h include/asm-sparc64/poll.h
      :-- include/asm-sparc/poll.h	2008-06-13 06:42:07.000000000 +0200
      :++ include/asm-sparc64/poll.h	2008-06-13 06:42:07.000000000 +0200
      :@@ -1,5 +1,5 @@
      :-#ifndef __SPARC_POLL_H
      :-#define __SPARC_POLL_H
      :+#ifndef __SPARC64_POLL_H
      :+#define __SPARC64_POLL_H
      :
      : #define POLLWRNORM	POLLOUT
      : #define POLLWRBAND	256
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      62e612f0
    • S
      sparc: Merge asm-sparc{,64}/param.h · 4835bd98
      Sam Ravnborg 提交于
      :$ diff -u include/asm-sparc/param.h include/asm-sparc64/param.h
      :-- include/asm-sparc/param.h	2008-06-13 06:46:39.000000000 +0200
      :++ include/asm-sparc64/param.h	2008-06-13 06:42:07.000000000 +0200
      :@@ -1,5 +1,6 @@
      :-#ifndef _ASMSPARC_PARAM_H
      :-#define _ASMSPARC_PARAM_H
      :+#ifndef _ASMSPARC64_PARAM_H
      :+#define _ASMSPARC64_PARAM_H
      :+
      :
      : #ifdef __KERNEL__
      : # define HZ		CONFIG_HZ	/* Internal kernel timer frequency */
      :@@ -19,4 +20,4 @@
      :
      : #define MAXHOSTNAMELEN	64	/* max length of hostname */
      :
      :-#endif
      :+#endif /* _ASMSPARC64_PARAM_H */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      4835bd98
    • S
      sparc: Merge asm-sparc{,64}/ioctls.h · f1ba03ca
      Sam Ravnborg 提交于
      Trivial differenses in comments - used the version from sparc64
      
      :$ diff -u include/asm-sparc/ioctls.h include/asm-sparc64/ioctls.h
      :-- include/asm-sparc/ioctls.h	2008-06-13 08:46:29.000000000 +0200
      :++ include/asm-sparc64/ioctls.h	2008-06-13 08:46:29.000000000 +0200
      :@@ -1,5 +1,5 @@
      :-#ifndef _ASM_SPARC_IOCTLS_H
      :-#define _ASM_SPARC_IOCTLS_H
      :+#ifndef _ASM_SPARC64_IOCTLS_H
      :+#define _ASM_SPARC64_IOCTLS_H
      :
      : #include <asm/ioctl.h>
      :
      :@@ -22,7 +22,7 @@
      :
      : /* Note that all the ioctls that are not available in Linux have a
      :  * double underscore on the front to: a) avoid some programs to
      :- * thing we support some ioctls under Linux (autoconfiguration stuff)
      :+ * think we support some ioctls under Linux (autoconfiguration stuff)
      :  */
      : /* Little t */
      : #define TIOCGETD	_IOR('t', 0, int)
      :@@ -110,7 +110,7 @@
      : #define TIOCSERGETLSR   0x5459 /* Get line status register */
      : #define TIOCSERGETMULTI 0x545A /* Get multiport config  */
      : #define TIOCSERSETMULTI 0x545B /* Set multiport config */
      :-#define TIOCMIWAIT	0x545C /* Wait input */
      :+#define TIOCMIWAIT	0x545C /* Wait for change on serial input line(s) */
      : #define TIOCGICOUNT	0x545D /* Read serial port inline interrupt counts */
      :
      : /* Kernel definitions */
      :@@ -133,4 +133,4 @@
      : #define TIOCPKT_NOSTOP		16
      : #define TIOCPKT_DOSTOP		32
      :
      :-#endif /* !(_ASM_SPARC_IOCTLS_H) */
      :+#endif /* !(_ASM_SPARC64_IOCTLS_H) */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      f1ba03ca
    • S
      sparc: Merge asm-sparc{,64}/ioctl.h · 278864fa
      Sam Ravnborg 提交于
      :$ diff -u include/asm-sparc/ioctl.h include/asm-sparc64/ioctl.h
      :-- include/asm-sparc/ioctl.h	2008-06-13 06:46:39.000000000 +0200
      :++ include/asm-sparc64/ioctl.h	2008-06-13 08:46:29.000000000 +0200
      :@@ -1,5 +1,5 @@
      :-#ifndef _SPARC_IOCTL_H
      :-#define _SPARC_IOCTL_H
      :+#ifndef _SPARC64_IOCTL_H
      :+#define _SPARC64_IOCTL_H
      :
      :/*
      :* Our DIR and SIZE overlap in order to simulteneously provide
      :@@ -64,4 +64,4 @@
      :#define IOCSIZE_MASK    (_IOC_XSIZEMASK << _IOC_SIZESHIFT)
      :#define IOCSIZE_SHIFT   (_IOC_SIZESHIFT)
      :
      :-#endif /* !(_SPARC_IOCTL_H) */
      :+#endif /* !(_SPARC64_IOCTL_H) */
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      278864fa
    • S
      sparc: copy exported sparc64 specific header files to asm-sparc · 09d3e1ba
      Sam Ravnborg 提交于
      Copy was done using the following simple script:
      
      set -e
      SPARC64="h display7seg.h envctrl.h psrcompat.h pstate.h uctx.h utrap.h watchdog.h"
      for FILE in ${SPARC64}; do
      	if [ -f asm-sparc/$FILE ]; then
      		echo $FILE exist in asm-sparc
      	fi
      	cat asm-sparc64/$FILE > asm-sparc/$FILE
      	printf "#include <asm-sparc/$FILE>\n" > asm-sparc64/$FILE
      done
      
      The name of the copied files are added to asm-sparc/Kbuild
      to keep "make headers_check" functional.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      09d3e1ba
    • D
    • S
      sparc: Merge include/asm-sparc{,64}/perfctr.h · 3f261e82
      Sam Ravnborg 提交于
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3f261e82
    • S
      fc491d7d
    • A
      sparc64/kernel/: make code static · 908f5162
      Adrian Bunk 提交于
      This patch makes the following needlessly global code static:
      - central.c: struct central_bus
      - central.c: struct fhc_list
      - central.c: apply_fhc_ranges()
      - central.c: apply_central_ranges()
      - ds.c: struct ds_states_template[]
      - pci_msi.c: sparc64_setup_msi_irq()
      - pci_msi.c: sparc64_teardown_msi_irq()
      - pci_sun4v.c: struct sun4v_dma_ops
      - sys_sparc32.c: cp_compat_stat64()
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      908f5162
  5. 01 7月, 2008 1 次提交
    • I
      fix "ftrace: store mcount address in rec->ip" · 760378e1
      Ingo Molnar 提交于
      Alexander Beregalov reported this build failure:
      
      $ make CROSS_COMPILE=sparc64-unknown-linux-gnu- image modules && sudo
      make modules_install
        CHK     include/linux/version.h
        CHK     include/linux/utsrelease.h
        CALL    scripts/checksyscalls.sh
        CHK     include/linux/compile.h
      dnsdomainname: Unknown host
        CC      arch/sparc64/kernel/sparc64_ksyms.o
      arch/sparc64/kernel/sparc64_ksyms.c:116: error: '_mcount' undeclared
      here (not in a function)
      cc1: warnings being treated as errors
      arch/sparc64/kernel/sparc64_ksyms.c:116: error: type defaults to 'int'
      in declaration of '_mcount'
      
      And bisected it back to:
      
      | commit 395a59d0
      | Author: Abhishek Sagar <sagar.abhishek@gmail.com>
      | Date:   Sat Jun 21 23:47:27 2008 +0530
      |
      |     ftrace: store mcount address in rec->ip
      
      the mcount prototype is only available under CONFIG_FTRACE,
      extend it to CONFIG_MCOUNT as well.
      Reported-and-bisected-by: NAlexander Beregalov <a.beregalov@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      760378e1
  6. 24 6月, 2008 1 次提交
  7. 30 5月, 2008 1 次提交
  8. 26 5月, 2008 1 次提交
  9. 20 5月, 2008 2 次提交
    • D
      sparc64: Add global register dumping facility. · 93dae5b7
      David S. Miller 提交于
      When a cpu really is stuck in the kernel, it can be often
      impossible to figure out which cpu is stuck where.  The
      worst case is when the stuck cpu has interrupts disabled.
      
      Therefore, implement a global cpu state capture that uses
      SMP message interrupts which are not disabled by the
      normal IRQ enable/disable APIs of the kernel.
      
      As long as we can get a sysrq 'y' to the kernel, we can
      get a dump.  Even if the console interrupt cpu is wedged,
      we can trigger it from userspace using /proc/sysrq-trigger
      
      The output is made compact so that this facility is more
      useful on high cpu count systems, which is where this
      facility will likely find itself the most useful :)
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      93dae5b7
    • A
      sparc64: remove CVS keywords · b00dc837
      Adrian Bunk 提交于
      This patch removes the CVS keywords that weren't updated for a long time
      from comments.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b00dc837
  10. 13 5月, 2008 2 次提交
  11. 11 5月, 2008 2 次提交
    • D
      sparc: Fix debugger syscall restart interactions. · 28e61036
      David S. Miller 提交于
      So, forever, we've had this ptrace_signal_deliver implementation
      which tries to handle all of the nasties that can occur when the
      debugger looks at a process about to take a signal.  It's meant
      to address all of these issues inside of the kernel so that the
      debugger need not be mindful of such things.
      
      Problem is, this doesn't work.
      
      The idea was that we should do the syscall restart business first, so
      that the debugger captures that state.  Otherwise, if the debugger for
      example saves the child's state, makes the child execute something
      else, then restores the saved state, we won't handle the syscall
      restart properly because we lose the "we're in a syscall" state.
      
      The code here worked for most cases, but if the debugger actually
      passes the signal through to the child unaltered, it's possible that
      we would do a syscall restart when we shouldn't have.
      
      In particular this breaks the case of debugging a process under a gdb
      which is being debugged by yet another gdb.  gdb uses sigsuspend
      to wait for SIGCHLD of the inferior, but if gdb itself is being
      debugged by a top-level gdb we get a ptrace_stop().  The top-level gdb
      does a PTRACE_CONT with SIGCHLD to let the inferior gdb see the
      signal.  But ptrace_signal_deliver() assumed the debugger would cancel
      out the signal and therefore did a syscall restart, because the return
      error was ERESTARTNOHAND.
      
      Fix this by simply making ptrace_signal_deliver() a nop, and providing
      a way for the debugger to control system call restarting properly:
      
      1) Report a "in syscall" software bit in regs->{tstate,psr}.
         It is set early on in trap entry to a system call and is fully
         visible to the debugger via ptrace() and regsets.
      
      2) Test this bit right before doing a syscall restart.  We have
         to do a final recheck right after get_signal_to_deliver() in
         case the debugger cleared the bit during ptrace_stop().
      
      3) Clear the bit in trap return so we don't accidently try to set
         that bit in the real register.
      
      As a result we also get a ptrace_{is,clear}_syscall() for sparc32 just
      like sparc64 has.
      
      M68K has this same exact bug, and is now the only other user of the
      ptrace_signal_deliver hook.  It needs to be fixed in the same exact
      way as sparc.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      28e61036
    • D
      sparc: Fix ptrace() detach. · 986bef85
      David S. Miller 提交于
      Forever we had a PTRACE_SUNOS_DETACH which was unconditionally
      recognized, regardless of the personality of the process.
      
      Unfortunately, this value is what ended up in the GLIBC sys/ptrace.h
      header file on sparc as PTRACE_DETACH and PT_DETACH.
      
      So continue to recognize this old value.  Luckily, it doesn't conflict
      with anything we actually care about.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      986bef85