]>
Commit | Line | Data |
---|---|---|
44f5e74f | 1 | /// @file\r |
2 | /// Contains an implementation of CallPalProcStacked on Itanium-based\r | |
3 | /// architecture.\r | |
4 | ///\r | |
5 | /// Copyright (c) 2008, Intel Corporation\r | |
6 | /// All rights reserved. This program and the accompanying materials\r | |
7 | /// are licensed and made available under the terms and conditions of the BSD License\r | |
8 | /// which accompanies this distribution. The full text of the license may be found at\r | |
9 | /// http://opensource.org/licenses/bsd-license.php\r | |
10 | ///\r | |
11 | /// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | /// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | ///\r | |
14 | /// Module Name: AsmCpuMisc.s\r | |
15 | ///\r | |
16 | ///\r | |
17 | \r | |
18 | \r | |
19 | .text\r | |
20 | .proc CpuBreakpoint\r | |
21 | .type CpuBreakpoint, @function\r | |
22 | \r | |
23 | CpuBreakpoint::\r | |
24 | break.i 0;;\r | |
25 | br.ret.dpnt b0;;\r | |
26 | \r | |
27 | .endp CpuBreakpoint\r | |
28 | \r | |
29 | .proc MemoryFence\r | |
30 | .type MemoryFence, @function\r | |
31 | \r | |
32 | MemoryFence::\r | |
33 | mf;; // memory access ordering\r | |
34 | \r | |
35 | // do we need the mf.a also here?\r | |
36 | mf.a // wait for any IO to complete?\r | |
37 | \r | |
38 | // not sure if we need serialization here, just put it, in case...\r | |
39 | \r | |
40 | srlz.d;;\r | |
41 | srlz.i;;\r | |
42 | \r | |
43 | br.ret.dpnt b0;;\r | |
44 | .endp MemoryFence\r | |
45 | \r | |
46 | .proc DisableInterrupts\r | |
47 | .type DisableInterrupts, @function\r | |
48 | \r | |
49 | DisableInterrupts::\r | |
6f890d5b | 50 | rsm 0x4000\r |
44f5e74f | 51 | srlz.d;;\r |
52 | br.ret.dpnt b0;;\r | |
53 | \r | |
54 | .endp DisableInterrupts\r | |
55 | \r | |
56 | .proc EnableInterrupts\r | |
57 | .type EnableInterrupts, @function\r | |
58 | \r | |
59 | EnableInterrupts::\r | |
6f890d5b | 60 | ssm 0x4000\r |
44f5e74f | 61 | srlz.d;;\r |
62 | br.ret.dpnt b0;;\r | |
63 | \r | |
64 | .endp EnableInterrupts\r | |
65 | \r | |
66 | .proc EnableDisableInterrupts\r | |
67 | .type EnableDisableInterrupts, @function\r | |
68 | \r | |
69 | EnableDisableInterrupts::\r | |
6f890d5b | 70 | ssm 0x4000\r |
44f5e74f | 71 | srlz.d;;\r |
72 | srlz.i;;\r | |
6f890d5b | 73 | rsm 0x4000\r |
44f5e74f | 74 | srlz.d;;\r |
75 | \r | |
76 | br.ret.dpnt b0;;\r | |
77 | \r | |
78 | .endp EnableDisableInterrupts\r | |
79 | \r |