db_main.c 1.6 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_main.c
  15. *
  16. * This file contains the main function of the PAL loader, which loads and
  17. * processes environment, arguments and manifest.
  18. */
  19. #include "pal_defs.h"
  20. #include "pal.h"
  21. #include "pal_internal.h"
  22. #include "pal_debug.h"
  23. #include "pal_error.h"
  24. #include "api.h"
  25. void __stack_chk_fail(void)
  26. {
  27. }
  28. /* must implement "pal_start", and call "pal_main" inside */
  29. void pal_start (void);
  30. unsigned long _DkGetPagesize (void)
  31. {
  32. return 0;
  33. }
  34. unsigned long _DkGetAllocationAlignment (void)
  35. {
  36. return 0;
  37. }
  38. void _DkGetAvailableUserAddressRange (PAL_PTR * start, PAL_PTR * end,
  39. PAL_PTR * hole_start, PAL_PTR * hole_end)
  40. {
  41. /* needs to be implemented */
  42. }
  43. PAL_NUM _DkGetProcessId (void)
  44. {
  45. return 0;
  46. }
  47. PAL_NUM _DkGetHostId (void)
  48. {
  49. return 0;
  50. }
  51. int _DkGetCPUInfo (PAL_CPU_INFO * ci)
  52. {
  53. /* needs to be implemented */
  54. return 0;
  55. }