Guest User

Untitled

a guest
Jul 19th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. diff -rc linux-0.01-rm-3.5.orig/fs/Makefile linux-0.01-rm-3.5/fs/Makefile
  2. *** linux-0.01-rm-3.5.orig/fs/Makefile 2008-01-14 05:58:48.000000000 +0900
  3. --- linux-0.01-rm-3.5/fs/Makefile 2011-01-12 18:23:37.336449408 +0900
  4. ***************
  5. *** 3,9 ****
  6. CC =gcc
  7. LD =ld
  8. CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \
  9. ! -fno-stack-protector -nostdinc -I../include
  10. CPP =gcc -E -nostdinc -I../include
  11.  
  12. .c.s:
  13. --- 3,9 ----
  14. CC =gcc
  15. LD =ld
  16. CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \
  17. ! -fno-stack-protector -nostdinc -fno-builtin -g -I../include
  18. CPP =gcc -E -nostdinc -I../include
  19.  
  20. .c.s:
  21. diff -rc linux-0.01-rm-3.5.orig/fs/stat.c linux-0.01-rm-3.5/fs/stat.c
  22. *** linux-0.01-rm-3.5.orig/fs/stat.c 2008-01-14 05:58:48.000000000 +0900
  23. --- linux-0.01-rm-3.5/fs/stat.c 2011-01-10 22:17:58.000062644 +0900
  24. ***************
  25. *** 102,108 ****
  26.  
  27. int sys_lstat64(char* filename, struct stat * statbuf)
  28. {
  29. ! return sys_stat64(filename,statbuf);
  30. }
  31.  
  32. int sys_oldstat()
  33. --- 102,108 ----
  34.  
  35. int sys_lstat64(char* filename, struct stat * statbuf)
  36. {
  37. ! return sys_stat64(filename, (struct stat64 *)statbuf);
  38. }
  39.  
  40. int sys_oldstat()
  41. diff -rc linux-0.01-rm-3.5.orig/include/asm/segment.h linux-0.01-rm-3.5/include/asm/segment.h
  42. *** linux-0.01-rm-3.5.orig/include/asm/segment.h 2008-01-14 05:58:48.000000000 +0900
  43. --- linux-0.01-rm-3.5/include/asm/segment.h 2011-01-12 14:13:26.278253365 +0900
  44. ***************
  45. *** 24,30 ****
  46.  
  47. extern inline void put_fs_byte(char val,char *addr)
  48. {
  49. ! __asm__ ("movb %0,%%fs:%1"::"r" (val),"m" (*addr));
  50. }
  51.  
  52. extern inline void put_fs_word(short val,short * addr)
  53. --- 24,30 ----
  54.  
  55. extern inline void put_fs_byte(char val,char *addr)
  56. {
  57. ! __asm__ ("movb %0,%%fs:%1"::"q" (val),"m" (*addr));
  58. }
  59.  
  60. extern inline void put_fs_word(short val,short * addr)
  61. diff -rc linux-0.01-rm-3.5.orig/kernel/console.c linux-0.01-rm-3.5/kernel/console.c
  62. *** linux-0.01-rm-3.5.orig/kernel/console.c 2008-01-14 05:58:48.000000000 +0900
  63. --- linux-0.01-rm-3.5/kernel/console.c 2011-01-12 15:22:17.037152184 +0900
  64. ***************
  65. *** 76,89 ****
  66. __asm__ __volatile("cld\n\t"
  67. "rep\n\t"
  68. "movsl\n\t"
  69. ! "movl columns,%1\n\t"
  70. "rep\n\t"
  71. "stosw"
  72. :"=&a" (d0), "=&c" (d1), "=&D" (d2), "=&S" (d3)
  73. :"0" (0x0720),
  74. "1" ((lines-1)*columns>>1),
  75. "2" (SCREEN_START),
  76. ! "3" (origin)
  77. :"memory");
  78.  
  79. scr_end -= origin-SCREEN_START;
  80. --- 76,90 ----
  81. __asm__ __volatile("cld\n\t"
  82. "rep\n\t"
  83. "movsl\n\t"
  84. ! "movl %[columns],%1\n\t"
  85. "rep\n\t"
  86. "stosw"
  87. :"=&a" (d0), "=&c" (d1), "=&D" (d2), "=&S" (d3)
  88. :"0" (0x0720),
  89. "1" ((lines-1)*columns>>1),
  90. "2" (SCREEN_START),
  91. ! "3" (origin),
  92. ! [columns] "r" (columns)
  93. :"memory");
  94.  
  95. scr_end -= origin-SCREEN_START;
  96. ***************
  97. *** 106,119 ****
  98. __asm__ __volatile__("cld\n\t"
  99. "rep\n\t"
  100. "movsl\n\t"
  101. ! "movl columns,%%ecx\n\t"
  102. "rep\n\t"
  103. "stosw"
  104. :"=&a" (d0), "=&c" (d1), "=&D" (d2), "=&S" (d3)
  105. :"0" (0x0720),
  106. "1" ((bottom-top-1)*columns>>1),
  107. "2" (origin+(columns<<1)*top),
  108. ! "3" (origin+(columns<<1)*(top+1))
  109. :"memory");
  110. }
  111. }
  112. --- 107,121 ----
  113. __asm__ __volatile__("cld\n\t"
  114. "rep\n\t"
  115. "movsl\n\t"
  116. ! "movl %[columns],%%ecx\n\t"
  117. "rep\n\t"
  118. "stosw"
  119. :"=&a" (d0), "=&c" (d1), "=&D" (d2), "=&S" (d3)
  120. :"0" (0x0720),
  121. "1" ((bottom-top-1)*columns>>1),
  122. "2" (origin+(columns<<1)*top),
  123. ! "3" (origin+(columns<<1)*(top+1)),
  124. ! [columns] "r" (columns)
  125. :"memory");
  126. }
  127. }
  128. ***************
  129. *** 125,138 ****
  130. "rep\n\t"
  131. "movsl\n\t"
  132. "addl $2,%%edi\n\t" /* %edi has been decremented by 4 */
  133. ! "movl columns,%%ecx\n\t"
  134. "rep\n\t"
  135. "stosw"
  136. :"=&a" (d0), "=&c" (d1), "=&D" (d2), "=&S" (d3)
  137. :"0" (0x0720),
  138. "1" ((bottom-top-1)*columns>>1),
  139. "2" (origin+(columns<<1)*bottom-4),
  140. ! "3" (origin+(columns<<1)*(bottom-1)-4)
  141. :"memory");
  142. }
  143.  
  144. --- 127,141 ----
  145. "rep\n\t"
  146. "movsl\n\t"
  147. "addl $2,%%edi\n\t" /* %edi has been decremented by 4 */
  148. ! "movl %[columns],%%ecx\n\t"
  149. "rep\n\t"
  150. "stosw"
  151. :"=&a" (d0), "=&c" (d1), "=&D" (d2), "=&S" (d3)
  152. :"0" (0x0720),
  153. "1" ((bottom-top-1)*columns>>1),
  154. "2" (origin+(columns<<1)*bottom-4),
  155. ! "3" (origin+(columns<<1)*(bottom-1)-4),
  156. ! [columns] "r" (columns)
  157. :"memory");
  158. }
  159.  
  160. diff -rc linux-0.01-rm-3.5.orig/kernel/Makefile linux-0.01-rm-3.5/kernel/Makefile
  161. *** linux-0.01-rm-3.5.orig/kernel/Makefile 2008-01-14 05:58:48.000000000 +0900
  162. --- linux-0.01-rm-3.5/kernel/Makefile 2011-01-12 18:23:31.268449391 +0900
  163. ***************
  164. *** 9,18 ****
  165. AR =ar
  166. AS =as
  167. LD =ld
  168. ! LDFLAGS =-s -x
  169. CC =gcc
  170. ! CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \
  171. ! -finline-functions -fno-stack-protector -nostdinc -I../include
  172. CPP =gcc -E -nostdinc -I../include
  173.  
  174. .c.s:
  175. --- 9,18 ----
  176. AR =ar
  177. AS =as
  178. LD =ld
  179. ! LDFLAGS =-g #-s -x
  180. CC =gcc
  181. ! CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \
  182. ! -finline-functions -fno-stack-protector -nostdinc -fno-builtin -g -I../include
  183. CPP =gcc -E -nostdinc -I../include
  184.  
  185. .c.s:
  186. diff -rc linux-0.01-rm-3.5.orig/lib/Makefile linux-0.01-rm-3.5/lib/Makefile
  187. *** linux-0.01-rm-3.5.orig/lib/Makefile 2008-01-14 05:58:48.000000000 +0900
  188. --- linux-0.01-rm-3.5/lib/Makefile 2011-01-12 18:23:20.860450735 +0900
  189. ***************
  190. *** 9,18 ****
  191. AR =ar
  192. AS =as
  193. LD =ld
  194. ! LDFLAGS =-s -x
  195. CC =gcc
  196. CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \
  197. ! -finline-functions -fno-stack-protector -nostdinc -I../include
  198. CPP =gcc -E -nostdinc -I../include
  199.  
  200. .c.s:
  201. --- 9,18 ----
  202. AR =ar
  203. AS =as
  204. LD =ld
  205. ! LDFLAGS =-g #-s -x
  206. CC =gcc
  207. CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \
  208. ! -finline-functions -fno-stack-protector -nostdinc -fno-builtin -g -I../include
  209. CPP =gcc -E -nostdinc -I../include
  210.  
  211. .c.s:
  212. diff -rc linux-0.01-rm-3.5.orig/Makefile linux-0.01-rm-3.5/Makefile
  213. *** linux-0.01-rm-3.5.orig/Makefile 2008-01-24 22:17:39.000000000 +0900
  214. --- linux-0.01-rm-3.5/Makefile 2011-01-12 18:23:44.840449198 +0900
  215. ***************
  216. *** 10,18 ****
  217.  
  218. AS =as
  219. LD =ld
  220. ! LDFLAGS =-s -x -M -Ttext 0 -e startup_32
  221. CC =gcc
  222. ! CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fno-stack-protector
  223. CPP =gcc -E -nostdinc -Iinclude
  224.  
  225. ARCHIVES=kernel/kernel.o mm/mm.o fs/fs.o
  226. --- 10,19 ----
  227.  
  228. AS =as
  229. LD =ld
  230. ! LDFLAGS =-M -Ttext 0 -e startup_32
  231. ! #LDFLAGS =-s -x -M -Ttext 0 -e startup_32
  232. CC =gcc
  233. ! CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fno-stack-protector -fno-builtin -g
  234. CPP =gcc -E -nostdinc -Iinclude
  235.  
  236. ARCHIVES=kernel/kernel.o mm/mm.o fs/fs.o
  237. diff -rc linux-0.01-rm-3.5.orig/mm/Makefile linux-0.01-rm-3.5/mm/Makefile
  238. *** linux-0.01-rm-3.5.orig/mm/Makefile 2008-01-14 05:58:48.000000000 +0900
  239. --- linux-0.01-rm-3.5/mm/Makefile 2011-01-12 18:23:27.324449165 +0900
  240. ***************
  241. *** 1,6 ****
  242. CC =gcc
  243. CFLAGS =-O -Wall -fstrength-reduce -fomit-frame-pointer \
  244. ! -fno-stack-protector -finline-functions -nostdinc -I../include
  245. AS =as
  246. AR =ar
  247. LD =ld
  248. --- 1,6 ----
  249. CC =gcc
  250. CFLAGS =-O -Wall -fstrength-reduce -fomit-frame-pointer \
  251. ! -fno-stack-protector -finline-functions -nostdinc -fno-builtin -g -I../include
  252. AS =as
  253. AR =ar
  254. LD =ld
  255. diff -rc linux-0.01-rm-3.5.orig/mm/memory.c linux-0.01-rm-3.5/mm/memory.c
  256. *** linux-0.01-rm-3.5.orig/mm/memory.c 2008-01-14 05:58:48.000000000 +0900
  257. --- linux-0.01-rm-3.5/mm/memory.c 2011-01-12 18:23:15.428449137 +0900
  258. ***************
  259. *** 63,69 ****
  260. "leal 4092(%%edx),%%edi\n\t"
  261. "rep ; stosl\n\t"
  262. "movl %%edx,%%eax\n"
  263. ! "1:"
  264. :"=a" (__res)
  265. :"0" (0),"i" (LOW_MEM),"c" (PAGING_PAGES),
  266. "D" (mem_map+PAGING_PAGES-1)
  267. --- 63,70 ----
  268. "leal 4092(%%edx),%%edi\n\t"
  269. "rep ; stosl\n\t"
  270. "movl %%edx,%%eax\n"
  271. ! "1:\n\t"
  272. ! "cld"
  273. :"=a" (__res)
  274. :"0" (0),"i" (LOW_MEM),"c" (PAGING_PAGES),
  275. "D" (mem_map+PAGING_PAGES-1)
Add Comment
Please, Sign In to add comment