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?
Counting memory
Re: Counting memory
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)..
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 --