00001 /* 00002 This software and ancillary information (herein called SOFTWARE ) 00003 called LinuxBIOS is made available under the terms described 00004 here. The SOFTWARE has been approved for release with associated 00005 LA-CC Number 00-34 . Unless otherwise indicated, this SOFTWARE has 00006 been authored by an employee or employees of the University of 00007 California, operator of the Los Alamos National Laboratory under 00008 Contract No. W-7405-ENG-36 with the U.S. Department of Energy. The 00009 U.S. Government has rights to use, reproduce, and distribute this 00010 SOFTWARE. The public may copy, distribute, prepare derivative works 00011 and publicly display this SOFTWARE without charge, provided that this 00012 Notice and any statement of authorship are reproduced on all copies. 00013 Neither the Government nor the University makes any warranty, express 00014 or implied, or assumes any liability or responsibility for the use of 00015 this SOFTWARE. If SOFTWARE is modified to produce derivative works, 00016 such modified SOFTWARE should be clearly marked, so as not to confuse 00017 it with the version available from LANL. 00018 */ 00019 /* Copyright 2000, Ron Minnich, Advanced Computing Lab, LANL 00020 * rminnich@lanl.gov 00021 */ 00022 00023 00024 #ifndef ROM_INTEL_H 00025 #define ROM_INTEL_H 00026 00027 /* 00028 * Bootstrap code for the Intel 00029 * 00030 */ 00031 00032 #define RET_LABEL(label) \ 00033 jmp label##_done 00034 00035 #define CALL_LABEL(label) \ 00036 jmp label ;\ 00037 label##_done: 00038 00039 #define CALLSP(func) \ 00040 lea 0f, %esp ; \ 00041 jmp func ; \ 00042 0: 00043 00044 #define RETSP \ 00045 jmp *%esp 00046 00047 00048 /* originally this macro was from STPC BIOS */ 00049 #define intel_chip_post_macro(value) \ 00050 movb $value, %al ; \ 00051 outb %al, $0x80 00052 00053 00054 #endif /* ROM_INTEL_H */
1.5.5