Merge pull request #7 from isoux/working-ver

Solved problem with creating new files (with vim, echo and so on).
Esse commit está contido em:
Isa
2019-05-05 20:33:54 +03:00
commit de GitHub
5 arquivos alterados com 11 adições e 11 exclusões
+4 -1
Ver Arquivo
@@ -1,4 +1,7 @@
2019.05.05:
Finally, the problem with creating new files (with vim, echo and so on) is solved.
Added one line of code to bitmap.c
2019.04.23:
The code is changed to remove all warnings when compiling it.
I changed key_map from Finland to English keyboard.
BIN
Ver Arquivo
Arquivo binário não exibido.
+3 -7
Ver Arquivo
@@ -9,10 +9,6 @@ The kernel runs in both emulators: QEMU ver. 2.11.1 and Bochs ver 2.6. and that
I also uploaded the bochsrc.txt file so that the bochs runs from the command line from the root where the kernel(Image) is
and qemu runs from the cmd line by the command: make run, but first unzip the file hd_oldlinux.img.zip.
The error I noticed after initializing the system is that the app "vim" (if you try) has a problem with opening files.
But the general problem is creating new files and writing in them. The app "touch" works smoothly.
The app "cat" can read existing files and app "echo" can't writing in files...
I will try to fix this.
Enjoy work and improvement
sincerely Isoux
Enjoy work and improvement.
sincerely
Isoux
+3 -2
Ver Arquivo
@@ -79,8 +79,9 @@ int new_block(int dev)
break;
if (i>=8 || !bh || j>=8192)
return 0;
if (set_bit(j,bh->b_data))
panic("new_block: bit already set");
sb->s_rd_only = 0;
if (set_bit(j,bh->b_data)){
panic("new_block: bit already set");}
bh->b_dirt = 1;
j += i*8192 + sb->s_firstdatazone-1;
if (j >= sb->s_nzones)
+1 -1
Ver Arquivo
@@ -242,7 +242,7 @@ shift_map:
.ascii "QWERTYUIOP{}" /* .ascii "QWERTYUIOP]^" */
.byte 10,0
.ascii "ASDFGHJKL:\"~" /* .ascii "ASDFGHJKL\\[" */
.byte 0 /* .byte 0,0 * */
.byte 0 /* .byte 0,0 * */
.ascii "|ZXCVBNM<>?_" /* .ascii "*ZXCVBNM;:_" */
.byte 0,'*,0,32 /* 36-39 */
.fill 16,1,0 /* 3A-49 */