This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
csce410pine64backup/MP3/MP3_Sources/paging_low.H

52 lines
1.3 KiB
C
Raw Permalink Normal View History

/*
File: paging_low.H
Author: R. Bettati
Department of Computer Science
Texas A&M University
Date : 09/03/28
Low-level register operations for x86 paging subsystem.
*/
#ifndef _paging_low_H_ // include file only once
#define _paging_low_H_
/*--------------------------------------------------------------------------*/
/* DEFINES */
/*--------------------------------------------------------------------------*/
/* -- none -- */
/*--------------------------------------------------------------------------*/
/* FORWARDS */
/*--------------------------------------------------------------------------*/
/* -- (none) -- */
/*--------------------------------------------------------------------------*/
/* LOW-LEVEL PAGING ROUTINES */
/*--------------------------------------------------------------------------*/
/* The low-level functions (defined in file 'paging_low.asm') that handle the
low-level function to manage the page tables. */
/* -- CR0 -- */
extern "C" unsigned long read_cr0();
extern "C" void write_cr0(unsigned long _val);
/* -- CR2 -- */
extern "C" unsigned long read_cr2();
/* -- CR3 -- */
extern "C" unsigned long read_cr3();
extern "C" void write_cr3(unsigned long _val);
#endif