2 * protmod.h Protected Mode Utilities
\r
4 * (C) 1994 by Christian Gusenbauer (cg@fimp01.fim.uni-linz.ac.at)
\r
5 * All Rights Reserved.
\r
7 * Permission to use, copy, modify and distribute this software and its
\r
8 * documentation is hereby granted, provided that both the copyright
\r
9 * notice and this permission notice appear in all copies of the
\r
10 * software, derivative works or modified versions, and any portions
\r
11 * thereof, and that both notices appear in supporting documentation.
\r
13 * I ALLOW YOU USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. I DISCLAIM
\r
14 * ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
\r
15 * USE OF THIS SOFTWARE.
\r
18 extern struct bootinfo bootinfo;
\r
19 extern int VCPIboot;
\r
21 extern int pm_copy(char far *from, unsigned long to, unsigned long count);
\r
22 /* pm_copy copies "count" bytes from location "from" (valid C pointer) to the
\r
23 * address "to" in the high-memory space.
\r
26 extern void startprog(long hmaddress, long size, long startaddr, long loadflags,
\r
28 /* startprog switches to protected mode, moves the kernel from hmaddress
\r
29 * to 0x100000l and finally starts the kernel.
\r
32 extern long get_high_memory(long size);
\r
33 /* get_high_memory allocates size bytes from high memory (>1MB) and returns
\r
34 * the address of this area.
\r