1994-10-01 05:05:10 +00:00
|
|
|
/*
|
|
|
|
* LP (Laptop Package)
|
|
|
|
*
|
|
|
|
* Copyright (C) 1994 by HOSOKAWA Tatsumi <hosokawa@mt.cs.keio.ac.jp>
|
|
|
|
*
|
|
|
|
* This software may be used, modified, copied, and distributed, in
|
|
|
|
* both source and binary form provided that the above copyright and
|
1995-05-30 08:16:23 +00:00
|
|
|
* these terms are retained. Under no circumstances is the author
|
|
|
|
* responsible for the proper functioning of this software, nor does
|
|
|
|
* the author assume any responsibility for damages incurred with its
|
1994-10-01 05:05:10 +00:00
|
|
|
* use.
|
|
|
|
*
|
|
|
|
* Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
|
1994-10-01 05:13:37 +00:00
|
|
|
*
|
1999-08-28 01:08:13 +00:00
|
|
|
* $FreeBSD$
|
1994-10-01 05:05:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MACHINE_APM_SEGMENTS_H
|
|
|
|
#define _MACHINE_APM_SEGMENTS_H
|
|
|
|
|
|
|
|
#define SIZEOF_GDT 8
|
|
|
|
#define BOOTSTRAP_GDT_NUM 32
|
|
|
|
|
1996-03-11 06:48:57 +00:00
|
|
|
#define APM_INIT_CS_INDEX (BOOTSTRAP_GDT_NUM - 4)
|
|
|
|
#define APM_INIT_DS_INDEX (BOOTSTRAP_GDT_NUM - 3)
|
|
|
|
#define APM_INIT_CS16_INDEX (BOOTSTRAP_GDT_NUM - 2)
|
|
|
|
#define APM_INIT_DS16_INDEX (BOOTSTRAP_GDT_NUM - 1)
|
1994-10-01 05:05:10 +00:00
|
|
|
#define APM_INIT_CS_SEL (APM_INIT_CS_INDEX << 3)
|
|
|
|
#define APM_INIT_DS_SEL (APM_INIT_DS_INDEX << 3)
|
|
|
|
#define APM_INIT_CS16_SEL (APM_INIT_CS16_INDEX << 3)
|
1996-03-11 06:48:57 +00:00
|
|
|
#define APM_INIT_DS16_SEL (APM_INIT_DS16_INDEX << 3)
|
1994-10-01 05:05:10 +00:00
|
|
|
|
|
|
|
#define CS32_ATTRIB 0x409e
|
|
|
|
#define DS32_ATTRIB 0x4092
|
1996-03-11 06:48:57 +00:00
|
|
|
#define CS16_ATTRIB 0x009e
|
|
|
|
#define DS16_ATTRIB 0x0092
|
1994-10-01 05:05:10 +00:00
|
|
|
|
|
|
|
#endif
|