OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 10:34 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Counting memory
PostPosted: Thu Jul 19, 2001 12:36 pm 
According to:

http://www.mega-tokyo.com/os/os-faq-mem ... mory_probe

it uses two functions inb() and outb(). where are those functions defined? I do not want to include any header file from /usr/include or library. is there a way to still do it? and G++ complains about ULONG USHORT UCHAR saying that ANSI C++ prohibits usage of these...what to use then? unsigned char?


Top
  
 
 Post subject: Re: Counting memory
PostPosted: Thu Jul 19, 2001 10:01 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 22, 2004 11:00 pm
Posts: 1076
inb and outb are my inline macro's for doing port read/writes.

hmm ok. as well as reading up on some basics of pmode (see other thread) i suggest you learn basics of C coding if you want to use C for your OS.

ulong/ushort/uchar are typedefs. (often i use UINT32, UINT16, UINT8, SINT32, SINT16, SINT8 etc)..

_________________
-- Stu --


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot], SemrushBot [Bot] and 104 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group