Counting memory

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
shawnd

Counting memory

Post by shawnd »

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?
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: Counting memory

Post by df »

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 --
Post Reply