Subversion Repositories HelenOS-historic

Rev

Rev 1018 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1018 Rev 1685
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __MAIN_H__
29
#ifndef __MAIN_H__
30
#define __MAIN_H__
30
#define __MAIN_H__
31
 
31
 
32
extern int _binary_____________kernel_kernel_bin_start;
32
/** Align to the nearest higher address.
-
 
33
 *
33
extern int _binary_____________kernel_kernel_bin_end;
34
 * @param addr  Address or size to be aligned.
-
 
35
 * @param align Size of alignment, must be power of 2.
-
 
36
 */
-
 
37
#define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1))
-
 
38
 
-
 
39
#define TASKMAP_MAX_RECORDS 32
-
 
40
 
-
 
41
typedef struct {
-
 
42
    void *addr;
-
 
43
    unsigned int size;
-
 
44
} task_t;
-
 
45
 
-
 
46
typedef struct {
-
 
47
    unsigned int cnt;
-
 
48
    task_t tasks[TASKMAP_MAX_RECORDS];
-
 
49
} bootinfo_t;
-
 
50
 
34
extern void start(void);
51
extern void start(void);
35
extern void bootstrap(void);
52
extern void bootstrap(void);
36
 
53
 
37
#endif
54
#endif