Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – tendra.SVN – Blame – /branches/tendra5/src/installers/80x86/linux/machine.c – Rev 2

Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1997
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
 
30
 
31
/* linux/machine.c */
32
 
33
/**********************************************************************
34
$Author: release $
35
$Date: 1998/01/17 15:55:52 $
36
$Revision: 1.1.1.1 $
37
$Log: machine.c,v $
38
 * Revision 1.1.1.1  1998/01/17  15:55:52  release
39
 * First version to be checked into rolling release.
40
 *
41
 * Revision 1.6  1996/03/12  12:44:28  pwe
42
 * 64-bit ints compatible with gcc long long
43
 *
44
 * Revision 1.5  1996/02/08  13:45:32  pwe
45
 * Linux elf v aout option
46
 *
47
 * Revision 1.4  1995/10/02  08:12:15  pwe
48
 * correct gcc reg_result structs
49
 *
50
 * Revision 1.3  1995/09/29  16:18:07  pwe
51
 * gcc_compatible default on Linux
52
 *
53
 * Revision 1.2  1995/01/30  12:57:14  pwe
54
 * Ownership -> PWE, tidy banners
55
 *
56
 * Revision 1.1  1994/11/08  16:28:22  jmf
57
 * Initial revision
58
 *
59
 * Revision 1.3  1994/07/13  07:51:05  jmf
60
 * Added Log
61
 *
62
**********************************************************************/
63
 
64
 
65
 
66
#include "config.h"
67
#include "common_types.h"
68
#include "expmacs.h"
69
#include "exp.h"
70
#include "shapemacs.h"
71
#include "out.h"
72
#include "localflags.h"
73
#include "szs_als.h"
74
 
75
/* VARIABLES */
76
/* All variables are initialised, jmf */
77
 
78
int linux_elf = 1;
79
 
80
char * local_prefix = ".L";
81
char * name_prefix = "";
82
 
83
 
84
 
85
/* PROCEDURES */
86
 
87
void set_linux_format
88
    PROTO_N ( (elf) )
89
    PROTO_T ( int elf )
90
{
91
  linux_elf = elf;
92
  if (elf) {
93
    local_prefix = ".L";
94
    name_prefix = "";
95
  }
96
  else {
97
    local_prefix = "L";
98
    name_prefix = "_";
99
  }
100
  return;
101
}
102
 
103
 
104
/* is the result of a procedure delivering
105
   this shape produced in registers. */
106
int reg_result
107
    PROTO_N ( (sha) )
108
    PROTO_T ( shape sha )
109
{
110
  unsigned char  n = name(sha);
111
  if (gcc_compatible) {
112
    int sz = shape_size(sha);
113
    if (n == nofhd)
114
      return 0;
115
    if (n == cpdhd && sz != 8 && sz != 16 && sz != 32 && sz != 64)
116
      return 0;
117
    return 1;
118
  };
119
  if (n == cpdhd || n == nofhd)
120
    return 0;
121
  return 1;
122
}
123
 
124
 
125