aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/boot/dosboot/protmod.h
blob: 2faf9750cba33b24c7d833efc93aaf4ee5dc1c6f (plain) (blame)
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
/*
 *	protmod.h		Protected Mode Utilities
 *
 *	(C) 1994 by Christian Gusenbauer (cg@fimp01.fim.uni-linz.ac.at)
 *	All Rights Reserved.
 * 
 *	Permission to use, copy, modify and distribute this software and its
 *	documentation is hereby granted, provided that both the copyright
 *	notice and this permission notice appear in all copies of the
 *	software, derivative works or modified versions, and any portions
 *	thereof, and that both notices appear in supporting documentation.
 * 
 *	I ALLOW YOU USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. I DISCLAIM
 *	ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
 *	USE OF THIS SOFTWARE.
 * 
 */
extern struct bootinfo bootinfo;
extern int VCPIboot;

extern int pm_copy(char far *from, unsigned long to, unsigned long count);
/* pm_copy copies "count" bytes from location "from" (valid C pointer) to the
 * address "to" in the high-memory space.
 */

extern void startprog(long hmaddress, long size, long startaddr, long loadflags,
					  long bootdev);
/* startprog switches to protected mode, moves the kernel from hmaddress
 * to 0x100000l and finally starts the kernel.
 */

extern long get_high_memory(long size);
/* get_high_memory allocates size bytes from high memory (>1MB) and returns
 * the address of this area.
 */