-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSWP.C
54 lines (48 loc) · 1.24 KB
/
SWP.C
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
48
49
50
51
52
53
54
/*
* UZIX - UNIX Implementation for MSX
* (c) 1997-2001 Arcady Schekochikhin
* Adriano C. R. da Cunha
*
* UZIX is based on UZI (UNIX Zilog Implementation)
* UZI is a UNIX kernel clone written for Z-80 systems.
* All code is public domain, not being based on any AT&T code.
*
* The author, Douglas Braun, can be reached at:
* 7696 West Zayante Rd.
* Felton, CA 95018
* oliveb!intelca!mipos3!cadev4!dbraun
*
* This program is under GNU GPL, read COPYING for details
*
*/
/**********************************************************
Memory swapper
**********************************************************/
#define NEED__DEVSWAP
#define NEED__MACHDEP
#include "uzix.h"
#ifdef SEPH
#include "types.h"
#include "signal.h"
#include "sys\ioctl.h"
#endif
#include "unix.h"
#undef NEED__DISPATCH
#undef NEED__DEVTTY
#undef NEED__DEVMISC
#undef NEED__FILESYS
#undef NEED__SCALL
#undef NEED__DEVFLOP
#undef NEED__DEVSWAP
#undef NEED__PROCESS
#include "extern.h"
extern uchar bdos(int, ...);
#ifdef PC_HOSTED
#include "devswap.mtc"
#else /* PC_HOSTED */
#ifdef MSX_HOSTED
#include "devswap.msx"
#else /* MSX_HOSTED */
#include "devswap.orn" /* ORION_HOSTED */
#endif /* MSX_HOSTED */
#endif /* PC_HOSTED */