Bootstrap3.c 595 B

1234567891011121314151617181920212223
  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. #include "pal.h"
  4. #include "pal_debug.h"
  5. void preload_func1 (void);
  6. void preload_func2 (void);
  7. int main (int argc, char ** argv, char ** envp)
  8. {
  9. /* check if the program is loaded */
  10. pal_printf("User Program Started\n");
  11. /* check control block */
  12. /* check executable name */
  13. pal_printf("Loaded Executable: %s\n", pal_control.executable);
  14. preload_func1();
  15. preload_func2();
  16. return 0;
  17. }