#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "os.h" #include "os_internal.h" #include "toolbox.h" #include "stackframe.h" using ToolBox::Log; using namespace ToolBox::Errors; namespace OS { uint16_t PBGetCatInfo(uint32_t paramBlock) { return 0; } uint16_t HFSDispatch(uint16_t trap) { uint32_t selector = cpuGetDReg(0); uint32_t paramBlock = cpuGetAReg(0); Log("%04x HFSDispatch(%08x, %08x)\n", trap, selector, paramBlock); switch (selector) { case 0x0009: //return PBGetCatInfo(paramBlock); //break; default: fprintf(stderr, "HFSDispatch: selector %08x not implemented\n", selector); exit(1); } return 0; } }