Rev 1787 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1789 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #ifndef __MAIN_H__ |
29 | #ifndef BOOT_ppc32_MAIN_H_ |
30 | #define __MAIN_H__ |
30 | #define BOOT_ppc32_MAIN_H_ |
31 | 31 | ||
32 | #include "ofw.h" |
32 | #include "ofw.h" |
33 | 33 | ||
34 | /** Align to the nearest higher address. |
- | |
35 | * |
- | |
36 | * @param addr Address or size to be aligned. |
- | |
37 | * @param align Size of alignment, must be power of 2. |
- | |
38 | */ |
- | |
39 | #define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1)) |
- | |
40 | - | ||
41 | #define TASKMAP_MAX_RECORDS 32 |
34 | #define TASKMAP_MAX_RECORDS 32 |
42 | 35 | ||
43 | typedef struct { |
36 | typedef struct { |
44 | void *addr; |
37 | void *addr; |
45 | unsigned int size; |
38 | unsigned int size; |