db_main.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. /* Copyright (C) 2014 OSCAR lab, Stony Brook University
  4. This file is part of Graphene Library OS.
  5. Graphene Library OS is free software: you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. Graphene Library OS is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. /*
  16. * db_main.c
  17. *
  18. * This file contains the main function of the PAL loader, which loads and
  19. * processes environment, arguments and manifest.
  20. */
  21. #include "pal_defs.h"
  22. #include "pal.h"
  23. #include "pal_internal.h"
  24. #include "pal_debug.h"
  25. #include "pal_error.h"
  26. #include "api.h"
  27. /* must implement "pal_start", and call "pal_main" inside */
  28. void pal_start (void);
  29. unsigned long _DkGetPagesize (void)
  30. {
  31. return 0;
  32. }
  33. unsigned long _DkGetAllocationAlignment (void)
  34. {
  35. return 0;
  36. }
  37. void _DkGetAvailableUserAddressRange (PAL_PTR * start, PAL_PTR * end)
  38. {
  39. /* need to be implemented */
  40. }
  41. PAL_NUM _DkGetProcessId (void)
  42. {
  43. return 0;
  44. }
  45. PAL_NUM _DkGetHostId (void)
  46. {
  47. return 0;
  48. }
  49. void _DkGetCPUInfo (PAL_CPU_INFO * ci)
  50. {
  51. /* need to be implemented */
  52. }