~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to erts/emulator/hipe/hipe_ppc.h

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * %CopyrightBegin%
3
 
 * 
4
 
 * Copyright Ericsson AB 2004-2009. All Rights Reserved.
5
 
 * 
 
3
 *
 
4
 * Copyright Ericsson AB 2004-2011. All Rights Reserved.
 
5
 *
6
6
 * The contents of this file are subject to the Erlang Public License,
7
7
 * Version 1.1, (the "License"); you may not use this file except in
8
8
 * compliance with the License. You should have received a copy of the
9
9
 * Erlang Public License along with this software. If not, it can be
10
10
 * retrieved online at http://www.erlang.org/.
11
 
 * 
 
11
 *
12
12
 * Software distributed under the License is distributed on an "AS IS"
13
13
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
 * the License for the specific language governing rights and limitations
15
15
 * under the License.
16
 
 * 
 
16
 *
17
17
 * %CopyrightEnd%
18
18
 */
19
 
/* $Id$
20
 
 */
 
19
 
 
20
 
21
21
#ifndef HIPE_PPC_H
22
22
#define HIPE_PPC_H
23
23
 
44
44
    return ((unsigned long)address & 0x3) == 0;
45
45
}
46
46
 
 
47
#if defined(__powerpc64__)
 
48
/* for hipe_bifs_{read,write}_{s,u}64 */
 
49
static __inline__ int hipe_word64_address_ok(void *address)
 
50
{
 
51
    return ((unsigned long)address & 0x7) == 0;
 
52
}
 
53
#endif
 
54
 
47
55
/* Native stack growth direction. */
48
56
#define HIPE_NSTACK_GROWS_DOWN
49
57
 
50
58
#if defined(__powerpc64__)
51
59
#define hipe_arch_name  am_ppc64
52
 
#define AEXTERN(RET,NAME,PROTO) extern const int NAME
 
60
#define AEXTERN(RET,NAME,PROTO) extern const int NAME[]
53
61
AEXTERN(void,hipe_ppc_inc_stack,(void));
54
62
#else
55
63
#define hipe_arch_name  am_powerpc