d276b32596b761cfd7637492b5b8ad634feb7c92
[coreboot.git] / src / arch / i386 / include / arch / intel.h
1 /*
2 This software and ancillary information (herein called SOFTWARE )
3 called LinuxBIOS          is made available under the terms described
4 here.  The SOFTWARE has been approved for release with associated
5 LA-CC Number 00-34   .  Unless otherwise indicated, this SOFTWARE has
6 been authored by an employee or employees of the University of
7 California, operator of the Los Alamos National Laboratory under
8 Contract No. W-7405-ENG-36 with the U.S. Department of Energy.  The
9 U.S. Government has rights to use, reproduce, and distribute this
10 SOFTWARE.  The public may copy, distribute, prepare derivative works
11 and publicly display this SOFTWARE without charge, provided that this
12 Notice and any statement of authorship are reproduced on all copies.
13 Neither the Government nor the University makes any warranty, express
14 or implied, or assumes any liability or responsibility for the use of
15 this SOFTWARE.  If SOFTWARE is modified to produce derivative works,
16 such modified SOFTWARE should be clearly marked, so as not to confuse
17 it with the version available from LANL.
18  */
19 /* Copyright 2000, Ron Minnich, Advanced Computing Lab, LANL
20  * rminnich@lanl.gov
21  */
22
23
24 #ifndef ROM_INTEL_H
25 #define ROM_INTEL_H
26
27 /*
28  * Bootstrap code for the Intel
29  *
30  */
31
32 #define RET_LABEL(label)        \
33         jmp label##_done
34
35 #define CALL_LABEL(label)       \
36         jmp label               ;\
37 label##_done:
38
39 #define CALLSP(func) \
40         lea     0f, %esp        ; \
41         jmp func                ; \
42 0:
43
44 #define RETSP \
45         jmp *%esp
46
47
48 /* originally this macro was from STPC BIOS */
49 #define intel_chip_post_macro(value)                     \
50         movb    $value, %al                             ; \
51         outb    %al, $0x80
52
53
54 #endif /* ROM_INTEL_H */