Created
January 5, 2014 13:20
-
-
Save thehajime/8268123 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -r 84912269f151 -r f89388d8c479 Makefile | |
| --- a/Makefile Wed Jul 11 20:31:37 2012 +0900 | |
| +++ b/Makefile Fri Oct 12 10:44:23 2012 +0900 | |
| @@ -59,14 +59,15 @@ | |
| kernel/_to_keep=notifier.o params.o time.o sysctl.o mutex.o \ | |
| rwsem.o semaphore.o srcu.o rcupdate.o rcutiny.o kfifo.o | |
| mm/_to_keep=util.o | |
| -crypto/_to_keep=aead.o ahash.o shash.o api.o algapi.o cipher.o compress.o proc.o | |
| +crypto/_to_keep=aead.o ahash.o shash.o api.o algapi.o cipher.o compress.o proc.o \ | |
| +fips.o crc32c.o algboss.o testmgr.o | |
| drivers/base/_to_keep=class.o core.o bus.o dd.o driver.o devres.o module.o | |
| drivers/net/_to_keep=loopback.o | |
| lib/_to_keep=klist.o kobject.o kref.o hweight.o int_sqrt.o checksum.o \ | |
| find_last_bit.o find_next_bit.o bitmap.o nlattr.o idr.o libcrc32c.o \ | |
| ctype.o string.o kasprintf.o rbtree.o sha1.o textsearch.o vsprintf.o \ | |
| rwsem-spinlock.o scatterlist.o ratelimit.o hexdump.o dec_and_lock.o \ | |
| -div64.o | |
| +div64.o scatterlist.o | |
| objs.mk: Makefile.print $(KERNEL_DIR)/.config | |
| -for i in 1; do \ | |
| diff -r 84912269f151 -r f89388d8c479 sim/defconfig | |
| --- a/sim/defconfig Wed Jul 11 20:31:37 2012 +0900 | |
| +++ b/sim/defconfig Fri Oct 12 10:44:23 2012 +0900 | |
| @@ -141,6 +141,8 @@ | |
| CONFIG_PHONET=m | |
| # CONFIG_NET_SCHED is not set | |
| # CONFIG_DCB is not set | |
| +CONFIG_IP_SCTP=y | |
| +CONFIG_SCTP_HMAC_NONE=y | |
| # | |
| # Network testing | |
| @@ -248,8 +250,8 @@ | |
| CONFIG_CRYPTO_RNG=m | |
| CONFIG_CRYPTO_RNG2=m | |
| CONFIG_CRYPTO_PCOMP=m | |
| -CONFIG_CRYPTO_MANAGER=m | |
| -CONFIG_CRYPTO_MANAGER2=m | |
| +CONFIG_CRYPTO_MANAGER=y | |
| +CONFIG_CRYPTO_MANAGER2=y | |
| CONFIG_CRYPTO_GF128MUL=m | |
| CONFIG_CRYPTO_NULL=m | |
| CONFIG_CRYPTO_WORKQUEUE=m | |
| @@ -281,7 +283,7 @@ | |
| # | |
| # Digest | |
| # | |
| -CONFIG_CRYPTO_CRC32C=m | |
| +CONFIG_CRYPTO_CRC32C=y | |
| CONFIG_CRYPTO_GHASH=m | |
| CONFIG_CRYPTO_MD4=m | |
| CONFIG_CRYPTO_MD5=m | |
| @@ -340,7 +342,7 @@ | |
| CONFIG_CRC_ITU_T=m | |
| CONFIG_CRC32=m | |
| CONFIG_CRC7=m | |
| -CONFIG_LIBCRC32C=m | |
| +CONFIG_LIBCRC32C=y | |
| CONFIG_ZLIB_INFLATE=m | |
| CONFIG_ZLIB_DEFLATE=m | |
| CONFIG_LZO_COMPRESS=m | |
| diff -r 84912269f151 -r f89388d8c479 sim/include/asm/page.h | |
| --- a/sim/include/asm/page.h Wed Jul 11 20:31:37 2012 +0900 | |
| +++ b/sim/include/asm/page.h Fri Oct 12 10:44:23 2012 +0900 | |
| @@ -11,4 +11,9 @@ | |
| #include <asm-generic/page.h> | |
| #include <asm-generic/getorder.h> | |
| +#undef virt_to_page | |
| +#undef page_to_virt | |
| +#define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) | |
| +#define page_to_virt(page) ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET) | |
| + | |
| #endif /* _ASM_SIM_PAGE_H */ | |
| diff -r 84912269f151 -r f89388d8c479 sim/sched.c | |
| --- a/sim/sched.c Wed Jul 11 20:31:37 2012 +0900 | |
| +++ b/sim/sched.c Fri Oct 12 10:44:23 2012 +0900 | |
| @@ -74,6 +74,15 @@ | |
| return task->kernel_task.pid; | |
| } | |
| +struct task_struct *kthread_create(int (*threadfn)(void *dat), | |
| + void *data, | |
| + const char namefmt[], | |
| + ...) | |
| +{ | |
| + struct SimTask *task = sim_task_start ((void (*)(void*))threadfn, data); | |
| + return &task->kernel_task; | |
| +} | |
| + | |
| struct task_struct *get_current(void) | |
| { | |
| struct SimTask *sim_task = sim_task_current (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment