tac0S
Template Affectional Command Operating System
Macros
disk.cc File Reference

Routines to simulate a physical disk device More...

#include "copyright.h"
#include "disk.h"
#include "system.h"

Macros

#define MagicNumber   0x456789ab
 
#define MagicSize   sizeof(int)
 
#define DiskSize   (MagicSize + (NumSectors * SectorSize))
 

Detailed Description

Routines to simulate a physical disk device

Author
Olivier Hureau, Hugo Feydel , Julien ALaimo disk.cc Routines to simulate a physical disk device; reading and writing to the disk is simulated as reading and writing to a UNIX file. See disk.h for details about the behavior of disks (and therefore about the behavior of this simulation).

Disk operations are asynchronous, so we have to invoke an interrupt handler when the simulated operation completes.

DO NOT CHANGE – part of the machine emulation

Copyright (c) 1992-1993 The Regents of the University of California. All rights reserved. See copyright.h for copyright notice and limitation of liability and disclaimer of warranty provisions.