1994-10-01 02:56:21 +00:00
|
|
|
/*
|
1995-02-17 02:22:57 +00:00
|
|
|
* APM (Advanced Power Management) BIOS Device Driver
|
1994-10-01 02:56:21 +00:00
|
|
|
*
|
1995-02-17 02:22:57 +00:00
|
|
|
* Copyright (c) 1994-1995 by HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
|
1994-10-01 02:56:21 +00:00
|
|
|
*
|
|
|
|
* 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 02:56:21 +00:00
|
|
|
* use.
|
|
|
|
*
|
|
|
|
* Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
|
1994-10-01 05:13:37 +00:00
|
|
|
*
|
1995-05-30 08:16:23 +00:00
|
|
|
* $Id: table.c,v 1.3 1995/02/17 02:22:34 phk Exp $
|
1994-10-01 02:56:21 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <apm_bios.h>
|
|
|
|
|
|
|
|
struct pseudo_desc {
|
|
|
|
unsigned short limit;
|
|
|
|
unsigned long base __attribute__ ((packed));
|
|
|
|
};
|
|
|
|
|
|
|
|
struct pseudo_desc Idtr_prot = { 0, 0 }; /* filled on run time */
|
|
|
|
struct pseudo_desc Idtr_real = { 0x400 - 1, 0x0 };
|