Page 1 of 1

Counting memory

Posted: Thu Jul 19, 2001 12:36 pm
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?

Re: Counting memory

Posted: Thu Jul 19, 2001 10:01 pm
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)..