Guest User

Untitled

a guest
Jun 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. diff --git a/arch/lkl/defconfig b/arch/lkl/defconfig
  2. index f91380beee7c..060016840df4 100644
  3. --- a/arch/lkl/defconfig
  4. +++ b/arch/lkl/defconfig
  5. @@ -31,8 +31,8 @@ CONFIG_EXT4_FS_POSIX_ACL=y
  6. CONFIG_EXT4_FS_SECURITY=y
  7. CONFIG_XFS_FS=y
  8. CONFIG_XFS_POSIX_ACL=y
  9. -CONFIG_BTRFS_FS=y
  10. -CONFIG_BTRFS_FS_POSIX_ACL=y
  11. +#CONFIG_BTRFS_FS=y
  12. +#CONFIG_BTRFS_FS_POSIX_ACL=y
  13. # CONFIG_FILE_LOCKING is not set
  14. # CONFIG_DNOTIFY is not set
  15. # CONFIG_INOTIFY_USER is not set
  16. diff --git a/tools/lkl/Makefile.autoconf b/tools/lkl/Makefile.autoconf
  17. index 77421d91de3e..36b249ab73d0 100644
  18. --- a/tools/lkl/Makefile.autoconf
  19. +++ b/tools/lkl/Makefile.autoconf
  20. @@ -14,7 +14,7 @@ define find_include
  21. endef
  22.  
  23. define is_defined
  24. -$(shell $(CC) -dM -E - </dev/null | grep $(1))
  25. +$(shell $(CC) -D__FIBER__ -dM -E - </dev/null | grep $(1))
  26. endef
  27.  
  28. define android_host
  29. @@ -28,6 +28,7 @@ endef
  30. define fiber_host
  31. $(call set_autoconf_var,FIBER,y)
  32. LDFLAGS += -lrt
  33. + CFLAGS += -D__FIBER__
  34. endef
  35.  
  36. define virtio_net_dpdk
  37. diff --git a/tools/lkl/include/lk/kernel/thread.h b/tools/lkl/include/lk/kernel/thread.h
  38. index 9fcef3eb2c6c..52692057e672 100644
  39. --- a/tools/lkl/include/lk/kernel/thread.h
  40. +++ b/tools/lkl/include/lk/kernel/thread.h
  41. @@ -68,7 +68,7 @@ enum thread_tls_list {
  42. #ifdef WITH_LIB_LKUSER
  43. TLS_ENTRY_LKUSER,
  44. #endif
  45. - MAX_TLS_ENTRY
  46. + MAX_TLS_ENTRY = 4
  47. };
  48.  
  49. #define THREAD_FLAG_DETACHED (1<<0)
  50. diff --git a/tools/lkl/lib/posix-host.c b/tools/lkl/lib/posix-host.c
  51. index 6731133eb46c..d3bc6a832993 100644
  52. --- a/tools/lkl/lib/posix-host.c
  53. +++ b/tools/lkl/lib/posix-host.c
  54. @@ -302,6 +302,7 @@ void lkl_thread_init(void)
  55. {
  56. thread_init_early();
  57. thread_init();
  58. + timer_init();
  59. thread_create_idle();
  60. thread_set_priority(DEFAULT_PRIORITY);
Add Comment
Please, Sign In to add comment