summaryrefslogtreecommitdiff
path: root/package/aboot/src/include/aboot.h
blob: cbec653f88a6b7001d503c0b22d27c7bb9e4da01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef aboot_h
#define aboot_h

#include <stdarg.h>

#include "hwrpb.h"

#include <setjmp.h>

#define SECT_SIZE	512	/* console block size for disk reads */
#define BOOT_SECTOR	2	/* first sector of 2ndary bootstrap loader */

extern struct segment {
	unsigned long addr, offset, size;
} *chunks;
extern int nchunks;

extern struct bootfs *	bfs;
extern char *		dest_addr;
extern long		bytes_to_copy;
extern long		text_offset;
extern jmp_buf		jump_buffer;

extern long		config_file_partition;

extern char		boot_file[256];
extern char		initrd_file[256];
extern char		kernel_args[256];
extern unsigned long	start_addr;
extern char *		bss_start;
extern long		bss_size;
extern unsigned long	initrd_start, initrd_size;
/* page size is in the INIT_HWRPB */
extern unsigned long	page_offset, page_shift;

extern long		first_block (const char *buf, long blocksize);
extern unsigned long	switch_to_osf_pal (unsigned long nr,
					   struct pcb_struct *pcb_va,
					   struct pcb_struct *pcb_pa,
					   unsigned long vptb,
					   unsigned long *kstk);
extern int		uncompress_kernel (int fd);
extern int		vsprintf (char *, const char *, va_list);
extern void		run_kernel (unsigned long entry, unsigned long stack)
			__attribute__((noreturn));

#endif /* aboot_h */