]>
Commit | Line | Data |
---|---|---|
1 | //++\r | |
2 | // Copyright (c) 2006, Intel Corporation \r | |
3 | // All rights reserved. This program and the accompanying materials \r | |
4 | // are licensed and made available under the terms and conditions of the BSD License \r | |
5 | // which accompanies this distribution. The full text of the license may be found at \r | |
6 | // http://opensource.org/licenses/bsd-license.php \r | |
7 | // \r | |
8 | // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
9 | // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
10 | // \r | |
11 | // Module Name:\r | |
12 | //\r | |
13 | // Common.i\r | |
14 | //\r | |
15 | // Abstract:\r | |
16 | //\r | |
17 | // This is set of useful macros\r | |
18 | //\r | |
19 | // Revision History:\r | |
20 | //\r | |
21 | //--\r | |
22 | \r | |
23 | #define NESTED_SETUP(i,l,o,r) \\r | |
24 | alloc loc1=ar##.##pfs,i,l,o,r ; \\r | |
25 | mov loc0=b0 ;;\r | |
26 | \r | |
27 | \r | |
28 | #define NESTED_RETURN \\r | |
29 | mov b0=loc0 ; \\r | |
30 | mov ar##.##pfs=loc1 ;; \\r | |
31 | br##.##ret##.##dpnt b0 ;;\r | |
32 | \r | |
33 | #define MASK(bp,value) (value << bp)\r | |
34 | \r |