db_misc.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Copyright (C) 2014 Stony Brook University
  2. This file is part of Graphene Library OS.
  3. Graphene Library OS is free software: you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public License
  5. as published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. Graphene Library OS is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  13. /*
  14. * db_misc.c
  15. *
  16. * This file contains APIs for miscellaneous use.
  17. */
  18. #include "pal_defs.h"
  19. #include "pal.h"
  20. #include "pal_internal.h"
  21. #include "pal_error.h"
  22. #include "api.h"
  23. int _DkInternalLock (PAL_LOCK * lock)
  24. {
  25. return -PAL_ERROR_NOTIMPLEMENTED;
  26. }
  27. int _DkInternalUnlock (PAL_LOCK * lock)
  28. {
  29. return -PAL_ERROR_NOTIMPLEMENTED;
  30. }
  31. unsigned long _DkSystemTimeQuery (void)
  32. {
  33. return 0;
  34. }
  35. size_t _DkRandomBitsRead (void * buffer, size_t size)
  36. {
  37. return -PAL_ERROR_NOTIMPLEMENTED;
  38. }
  39. int _DkSegmentRegisterSet (int reg, const void * addr)
  40. {
  41. return -PAL_ERROR_NOTIMPLEMENTED;
  42. }
  43. int _DkSegmentRegisterGet (int reg, void ** addr)
  44. {
  45. return -PAL_ERROR_NOTIMPLEMENTED;
  46. }
  47. int _DkInstructionCacheFlush (const void * addr, int size)
  48. {
  49. return -PAL_ERROR_NOTIMPLEMENTED;
  50. }
  51. int _DkCpuIdRetrieve (unsigned int leaf, unsigned int subleaf,
  52. unsigned int values[4])
  53. {
  54. return -PAL_ERROR_NOTIMPLEMENTED;
  55. }