Subversion Repositories Games.Carmageddon

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include "memmgmt.h"
  2. #include "harness/trace.h"
  3.  
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <string.h>
  7.  
  8. host_regs regs;
  9.  
  10. // IDA: br_error __cdecl HostLock(br_uint_32 offset, br_uint_16 sel, br_size_t size)
  11. br_error HostLock(br_uint_32 offset, br_uint_16 sel, br_size_t size) {
  12.     LOG_TRACE("(%d, %d, %d)", offset, sel, size);
  13.     NOT_IMPLEMENTED();
  14. }
  15.  
  16. // IDA: br_error __cdecl HostUnlock(br_uint_32 offset, br_uint_16 sel, br_size_t size)
  17. br_error HostUnlock(br_uint_32 offset, br_uint_16 sel, br_size_t size) {
  18.     LOG_TRACE("(%d, %d, %d)", offset, sel, size);
  19.     NOT_IMPLEMENTED();
  20. }
  21.  
  22. // IDA: br_error __cdecl HostSelectorAllocate(br_uint_16 *selp)
  23. br_error HostSelectorAllocate(br_uint_16* selp) {
  24.     LOG_TRACE("(%p)", selp);
  25.     NOT_IMPLEMENTED();
  26. }
  27.  
  28. // IDA: br_error __cdecl HostSelectorAllocateLinear(br_uint_16 *selp, br_uint_32 base, br_size_t size)
  29. br_error HostSelectorAllocateLinear(br_uint_16* selp, br_uint_32 base, br_size_t size) {
  30.     //br_uint_16 sel; // Pierre-Marie Baty -- unused variable
  31.     //br_error r; // Pierre-Marie Baty -- unused variable
  32.     LOG_TRACE("(%p, %d, %d)", selp, base, size);
  33.     NOT_IMPLEMENTED();
  34. }
  35.  
  36. // IDA: br_error __cdecl HostSelectorAllocateAlias(br_uint_16 *aliasp, br_uint_16 sel)
  37. br_error HostSelectorAllocateAlias(br_uint_16* aliasp, br_uint_16 sel) {
  38.     //br_uint_16 alias; // Pierre-Marie Baty -- unused variable
  39.     //br_uint_32 base; // Pierre-Marie Baty -- unused variable
  40.     //br_uint_32 limit; // Pierre-Marie Baty -- unused variable
  41.     //br_error r; // Pierre-Marie Baty -- unused variable
  42.     LOG_TRACE("(%p, %d)", aliasp, sel);
  43.     NOT_IMPLEMENTED();
  44. }
  45.  
  46. // IDA: br_error __cdecl HostSelectorAllocatePhysical(br_uint_16 *selp, br_uint_32 phys_addr, br_size_t size)
  47. br_error HostSelectorAllocatePhysical(br_uint_16* selp, br_uint_32 phys_addr, br_size_t size) {
  48.     LOG_TRACE("(%p, %d, %d)", selp, phys_addr, size);
  49.     NOT_IMPLEMENTED();
  50. }
  51.  
  52. // IDA: br_error __cdecl HostSelectorFree(br_uint_16 sel)
  53. br_error HostSelectorFree(br_uint_16 sel) {
  54.     //br_uint_16 rsel; // Pierre-Marie Baty -- unused variable
  55.     LOG_TRACE("(%d)", sel);
  56.     NOT_IMPLEMENTED();
  57. }
  58.  
  59. // IDA: br_error __cdecl HostSelectorBaseSet(br_uint_16 sel, br_uint_32 base)
  60. br_error HostSelectorBaseSet(br_uint_16 sel, br_uint_32 base) {
  61.     LOG_TRACE("(%d, %d)", sel, base);
  62.     NOT_IMPLEMENTED();
  63. }
  64.  
  65. // IDA: br_error __cdecl HostSelectorLimitSet(br_uint_16 sel, br_size_t limit)
  66. br_error HostSelectorLimitSet(br_uint_16 sel, br_size_t limit) {
  67.     LOG_TRACE("(%d, %d)", sel, limit);
  68.     NOT_IMPLEMENTED();
  69. }
  70.  
  71. // IDA: br_error __cdecl HostSelectorBaseQuery(br_uint_32 *basep, br_uint_16 sel)
  72. br_error HostSelectorBaseQuery(br_uint_32* basep, br_uint_16 sel) {
  73.     //br_uint_32 base; // Pierre-Marie Baty -- unused variable
  74.     LOG_TRACE("(%p, %d)", basep, sel);
  75.     NOT_IMPLEMENTED();
  76. }
  77.  
  78. // IDA: br_error __cdecl HostSelectorLimitQuery(br_uint_32 *limitp, br_uint_16 sel)
  79. br_error HostSelectorLimitQuery(br_uint_32* limitp, br_uint_16 sel) {
  80.     //br_uint_32 limit; // Pierre-Marie Baty -- unused variable
  81.     //ldt ldt; // Pierre-Marie Baty -- unused variable
  82.     LOG_TRACE("(%p, %d)", limitp, sel);
  83.     NOT_IMPLEMENTED();
  84. }
  85.