Rev 964 | Rev 1219 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 964 | Rev 1075 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #ifndef __MAIN_H__ |
29 | #ifndef __MAIN_H__ |
30 | #define __MAIN_H__ |
30 | #define __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 | ||
34 | extern int _binary_____________kernel_kernel_bin_start; |
41 | extern int _binary_____________kernel_kernel_bin_start; |
35 | extern int _binary_____________kernel_kernel_bin_end; |
42 | extern int _binary_____________kernel_kernel_bin_end; |
36 | extern void start(void); |
43 | extern void start(void); |
37 | extern void bootstrap(void); |
44 | extern void bootstrap(void); |
38 | 45 |