Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8047
b: refs/heads/master
c: dd56fdf
h: refs/heads/master
i:
  8045: 548f7a9
  8043: 6b3dcf1
  8039: 21d24a0
  8031: e20ddcf
v: v3
  • Loading branch information
jdl@freescale.com authored and Paul Mackerras committed Sep 9, 2005
1 parent 01623bd commit 501c9c2
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 202 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: 64807081e38703617cf9a5d71db14ea2b3e1cb04
refs/heads/master: dd56fdf23dfa0127d512b73d4238dbd2b5a7c1eb
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
#ifndef _PPC_MSGBUF_H
#define _PPC_MSGBUF_H
#ifndef _ASM_POWERPC_MSGBUF_H
#define _ASM_POWERPC_MSGBUF_H

/*
* The msqid64_ds structure for the PPC architecture.
* The msqid64_ds structure for the PowerPC architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*/

struct msqid64_ds {
struct ipc64_perm msg_perm;
#ifndef __powerpc64__
unsigned int __unused1;
#endif
__kernel_time_t msg_stime; /* last msgsnd time */
#ifndef __powerpc64__
unsigned int __unused2;
#endif
__kernel_time_t msg_rtime; /* last msgrcv time */
#ifndef __powerpc64__
unsigned int __unused3;
#endif
__kernel_time_t msg_ctime; /* last change time */
unsigned long msg_cbytes; /* current number of bytes on queue */
unsigned long msg_qnum; /* number of messages in queue */
Expand All @@ -22,4 +30,4 @@ struct msqid64_ds {
unsigned long __unused5;
};

#endif /* _PPC_MSGBUF_H */
#endif /* _ASM_POWERPC_MSGBUF_H */
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef _ASM_PPC_PARAM_H
#define _ASM_PPC_PARAM_H
#ifndef _ASM_POWERPC_PARAM_H
#define _ASM_POWERPC_PARAM_H

#include <linux/config.h>

#ifdef __KERNEL__
#define HZ CONFIG_HZ /* internal timer frequency */
#define HZ CONFIG_HZ /* internal kernel timer frequency */
#define USER_HZ 100 /* for user interfaces in "ticks" */
#define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */
#endif /* __KERNEL__ */
Expand All @@ -21,4 +21,4 @@

#define MAXHOSTNAMELEN 64 /* max length of hostname */

#endif
#endif /* _ASM_POWERPC_PARAM_H */
9 changes: 9 additions & 0 deletions trunk/include/asm-powerpc/setup.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef _ASM_POWERPC_SETUP_H
#define _ASM_POWERPC_SETUP_H

#ifdef __KERNEL__

#define COMMAND_LINE_SIZE 512

#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_SETUP_H */
37 changes: 23 additions & 14 deletions trunk/include/asm-ppc/timex.h → trunk/include/asm-powerpc/timex.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef _ASM_POWERPC_TIMEX_H
#define _ASM_POWERPC_TIMEX_H

#ifdef __KERNEL__

/*
* include/asm-ppc/timex.h
*
* ppc architecture timex specifications
* PowerPC architecture timex specifications
*/
#ifdef __KERNEL__
#ifndef _ASMppc_TIMEX_H
#define _ASMppc_TIMEX_H

#include <linux/config.h>
#include <asm/cputable.h>
Expand All @@ -14,14 +14,21 @@

typedef unsigned long cycles_t;

/*
* For the "cycle" counter we use the timebase lower half.
* Currently only used on SMP.
*/

static inline cycles_t get_cycles(void)
{
cycles_t ret = 0;
cycles_t ret;

#ifdef __powerpc64__

__asm__ __volatile__("mftb %0" : "=r" (ret) : );

#else
/*
* For the "cycle" counter we use the timebase lower half.
* Currently only used on SMP.
*/

ret = 0;

__asm__ __volatile__(
"98: mftb %0\n"
Expand All @@ -33,8 +40,10 @@ static inline cycles_t get_cycles(void)
" .long 99b\n"
".previous"
: "=r" (ret) : "i" (CPU_FTR_601));
#endif

return ret;
}

#endif
#endif /* __KERNEL__ */
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_TIMEX_H */
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#ifndef _ASM_PPC64_TOPOLOGY_H
#define _ASM_PPC64_TOPOLOGY_H
#ifndef _ASM_POWERPC_TOPOLOGY_H
#define _ASM_POWERPC_TOPOLOGY_H

#include <linux/config.h>
#include <asm/mmzone.h>

#ifdef CONFIG_NUMA

#include <asm/mmzone.h>

static inline int cpu_to_node(int cpu)
{
int node;
Expand Down Expand Up @@ -66,4 +67,4 @@ static inline int node_to_first_cpu(int node)

#endif /* CONFIG_NUMA */

#endif /* _ASM_PPC64_TOPOLOGY_H */
#endif /* _ASM_POWERPC_TOPOLOGY_H */
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#ifdef __KERNEL__
#ifndef _PPC_USER_H
#define _PPC_USER_H
#ifndef _ASM_POWERPC_USER_H
#define _ASM_POWERPC_USER_H

/* Adapted from <asm-alpha/user.h> */
#ifdef __KERNEL__

#include <linux/ptrace.h>
#include <asm/ptrace.h>
#include <asm/page.h>

/*
* Adapted from <asm-alpha/user.h>
*
* Core file format: The core file is written in such a way that gdb
* can understand it and provide useful information to the user (under
* linux we use the `trad-core' bfd, NOT the osf-core). The file contents
Expand Down Expand Up @@ -50,5 +51,5 @@ struct user {
#define HOST_DATA_START_ADDR (u.start_data)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

#endif /* _PPC_USER_H */
#endif /* __KERNEL__ */
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_USER_H */
14 changes: 0 additions & 14 deletions trunk/include/asm-ppc/setup.h

This file was deleted.

6 changes: 0 additions & 6 deletions trunk/include/asm-ppc/topology.h

This file was deleted.

27 changes: 0 additions & 27 deletions trunk/include/asm-ppc64/msgbuf.h

This file was deleted.

31 changes: 0 additions & 31 deletions trunk/include/asm-ppc64/param.h

This file was deleted.

6 changes: 0 additions & 6 deletions trunk/include/asm-ppc64/setup.h

This file was deleted.

26 changes: 0 additions & 26 deletions trunk/include/asm-ppc64/timex.h

This file was deleted.

58 changes: 0 additions & 58 deletions trunk/include/asm-ppc64/user.h

This file was deleted.

0 comments on commit 501c9c2

Please sign in to comment.