summaryrefslogtreecommitdiff
path: root/package/aboot/src/include/utils.h
blob: cda1d860070661cbd0802c0144a05b36512f1e3d (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
#ifndef utils_h
#define utils_h

#include <stddef.h>

#include "hwrpb.h"

#ifdef TESTING
#define pal_init()
#else
extern int		printf (const char *fmt, ...);
extern struct pcb_struct *find_pa (unsigned long vptb, struct pcb_struct *pcb);
extern void		pal_init (void);

extern void *		malloc (size_t size);
extern void		free (void *ptr);
extern void		getline (char *buf, int maxlen);
#endif

extern int		check_memory(unsigned long, unsigned long);
extern unsigned long	memory_end(void);
extern unsigned long	free_mem_ptr;

#endif /* utils_h */