DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦7c5494bd4⟧ TextFile

    Length: 1283 (0x503)
    Types: TextFile
    Notes: UNIX file
    Names: »gate.h«

Derivation

└─⟦a6ab2eb36⟧ Bits:30004042/kconfig3.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦a6ab2eb36⟧ UNIX Filesystem
    └─⟦this⟧ »kc/new/usr/include/sys/gate.h« 

TextFile

/*	Copyright (c) 1984 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/

#ident	"@(#)gate.h	1.3"

/*
 *  Call/Interrupt/Trap Gate table descriptions
 */

struct gate {
	unsigned short g_looff;	/* low word of offset */
	unsigned short g_sel;	/* selector */
	unsigned char g_wcount;	/* word count */
	unsigned char g_type;	/* type of gate and access rights */
	unsigned short g_hioff;	/* high word of the offset */
};
 
/* access rights field for gates */

#define GATE_UACC 0xE0			/* present and dpl = 3 */
#define GATE_KACC 0x80			/* present and dpl = 0 */
#define GATE_386INT 0xE			/* 386 int gate */
#define GATE_386TRP 0xF			/* 386 trap gate */
#define GATE_TSS 0x5			/* TSS gate */

/* make an interrupt gate */
#define MKINTG(rtn) {(short)rtn&0xFFFF, (short)KCS_SEL, (char)0, \
		 (char)(GATE_KACC|GATE_386INT), (short)((rtn&0xFFFF0000)>>16) } 
#define MKKTRPG(rtn) {(short)rtn&0xFFFF, (short)KCS_SEL, (char)0, \
		 (char)(GATE_KACC|GATE_386TRP), (short)((rtn&0xFFFF0000)>>16) } 
#define MKUTRPG(rtn) {(short)rtn&0xFFFF, (short)KCS_SEL, (char)0, \
		 (char)(GATE_UACC|GATE_386TRP), (short)((rtn&0xFFFF0000)>>16) }