Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 367583
Collapse All | Expand All

(-)qt-everywhere-opensource-src-4.7.2.orig//src/corelib/arch/parisc/arch.pri (-2 / +1 lines)
Lines 1-5 Link Here
1
#
1
#
2
# HP PA-RISC architecture
2
# HP PA-RISC architecture
3
#
3
#
4
SOURCES += $$QT_ARCH_CPP/q_ldcw.s \
4
SOURCES += $$QT_ARCH_CPP/qatomic_parisc.cpp
5
	   $$QT_ARCH_CPP/qatomic_parisc.cpp
(-)qt-everywhere-opensource-src-4.7.2.orig//src/corelib/arch/parisc/q_ldcw.s (-62 lines)
Lines 1-62 Link Here
1
;/****************************************************************************
2
;**
3
;** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4
;** All rights reserved.
5
;** Contact: Nokia Corporation (qt-info@nokia.com)
6
;**
7
;** This file is part of the QtGui module of the Qt Toolkit.
8
;**
9
;** $QT_BEGIN_LICENSE:LGPL$
10
;** Commercial Usage
11
;** Licensees holding valid Qt Commercial licenses may use this file in
12
;** accordance with the Qt Commercial License Agreement provided with the
13
;** Software or, alternatively, in accordance with the terms contained in
14
;** a written agreement between you and Nokia.
15
;**
16
;** GNU Lesser General Public License Usage
17
;** Alternatively, this file may be used under the terms of the GNU Lesser
18
;** General Public License version 2.1 as published by the Free Software
19
;** Foundation and appearing in the file LICENSE.LGPL included in the
20
;** packaging of this file.  Please review the following information to
21
;** ensure the GNU Lesser General Public License version 2.1 requirements
22
;** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
23
;**
24
;** In addition, as a special exception, Nokia gives you certain additional
25
;** rights.  These rights are described in the Nokia Qt LGPL Exception
26
;** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
27
;**
28
;** GNU General Public License Usage
29
;** Alternatively, this file may be used under the terms of the GNU
30
;** General Public License version 3.0 as published by the Free Software
31
;** Foundation and appearing in the file LICENSE.GPL included in the
32
;** packaging of this file.  Please review the following information to
33
;** ensure the GNU General Public License version 3.0 requirements will be
34
;** met: http://www.gnu.org/copyleft/gpl.html.
35
;**
36
;** If you have questions regarding the use of this file, please contact
37
;** Nokia at qt-info@nokia.com.
38
;** $QT_END_LICENSE$
39
;**
40
;****************************************************************************/
41
	.SPACE $PRIVATE$
42
	.SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
43
	.SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
44
	.SPACE $TEXT$
45
	.SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
46
	.SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
47
	.IMPORT $global$,DATA
48
	.IMPORT $$dyncall,MILLICODE
49
	.SPACE $TEXT$
50
	.SUBSPA $CODE$
51
52
	.align 4
53
	.EXPORT q_ldcw,ENTRY,PRIV_LEV=3,ARGW0=GR,RTNVAL=GR
54
q_ldcw
55
	.PROC
56
	.CALLINFO FRAME=0,CALLS,SAVE_RP
57
	.ENTRY
58
	ldcw 0(%r26),%r1
59
	bv %r0(%r2)
60
	copy %r1,%r28
61
	.EXIT
62
	.PROCEND
(-)qt-everywhere-opensource-src-4.7.2.orig//src/corelib/arch/parisc/qatomic_parisc.cpp (-2 / +12 lines)
Lines 68-76 Link Here
68
    return off ? (int *)(ulong(lock) + 16 - off) : lock;
68
    return off ? (int *)(ulong(lock) + 16 - off) : lock;
69
}
69
}
70
70
71
extern "C" {
71
static int q_ldcw(volatile int *addr) {
72
73
	register int val;
74
	asm volatile (
75
		"	ldcwx	0(0,%2),%0	\n"
76
:		"=r"(val), "+m"(*addr)
77
:		"r"(addr)
78
:		"memory");
79
	return (val == 0);
80
	
81
}
72
82
73
    int q_ldcw(volatile int *addr);
83
extern "C" {
74
84
75
    void q_atomic_lock(int *lock)
85
    void q_atomic_lock(int *lock)
76
    {
86
    {

Return to bug 367583