Re: Bug jumping from bootsect to kernel
Posted: Wed Apr 27, 2011 3:01 pm
Sorry - that was misinformation. It doesn't work! I ran the wrong version by mistake, the one that I'd modified.
The Place to Start for Operating System Developers
http://f.osdev.org/
it isn' that....DavidCooper wrote:The debug code (posting to the screen before the jump to the kernel) must be causing a crash due to ES not being set to 16.
Not for me ¬¬DavidCooper wrote:Yes, I've just replaced the code posting to the screen before the jump to the kernel with nops and it works perfectly.
Have you made another disk image available with that code removed? If so I'll check it. Have you tried it in Bochs or are you just using Qemu?antoniovazquezblanco wrote:Not for me ¬¬DavidCooper wrote:Yes, I've just replaced the code posting to the screen before the jump to the kernel with nops and it works perfectly.
I don't get it? What codee?DavidCooper wrote:Ya esta alli! Get rid of the code between the two jumps!
The 234 0 0 1 0 8 0 after it is the jump to the kernel.234 5 124 0 0 49 192 142 216 142 208 188 0 124 104 0 16 7 187 0
0 180 2 176 1 181 0 177 2 182 0 178 0 205 19 115 9 232 77 0
15 131 212 255 235 62 250 228 146 12 2 230 146 251 184 128 128 142 192 190
183 124 49 255 185 10 0 102 243 165 15 1 22 177 124 250 15 32 192 102
131 200 1 15 34 192 234 91 124 8 0 199 5 0 128 11 0 80 31 77
31 234 0 0 1 0 8 0 190 144 124 232 16 0 244 235 253 80 82 184
0 0 178 0 249 205 19 90 88 195 96 180 14 172 60 0 116 4 205 16
235 247 97 195 91 33 93 32 69 114 114 111 114 32 98 111 111 116 105 110
103 32 70 105 114 101 98 105 114 100 32 79 83 46 46 46 0 39 0 0
8 8 0 0 0 0 0 0 0 0 0 255 255 0 0 0 154 207 0 255
255 0 0 0 146 207 0 0 0 0 0 0 0 0 0 0 0 0 0 0
disk.dir
000 001
000 102
Are you shure you've downloaded the latest link? It doesn't appear for me!DavidCooper wrote:Here's what I'm looking at, and the bit in bold is the bit that you're supposed to have removed.
234 5 124 0 0 49 192 142 216 142 208 188 0 124 104 0 16 7 187 0
0 180 2 176 1 181 0 177 2 182 0 178 0 205 19 115 9 232 77 0
15 131 212 255 235 62 250 228 146 12 2 230 146 251 184 128 128 142 192 190
183 124 49 255 185 10 0 102 243 165 15 1 22 177 124 250 15 32 192 102
131 200 1 15 34 192 234 91 124 8 0 199 5 0 128 11 0 80 31 77
31 234 0 0 1 0 8 0 190 144 124 232 16 0 244 235 253 80 82 184
0 0 178 0 249 205 19 90 88 195 96 180 14 172 60 0 116 4 205 16
235 247 97 195 91 33 93 32 69 114 114 111 114 32 98 111 111 116 105 110
103 32 70 105 114 101 98 105 114 100 32 79 83 46 46 46 0 39 0 0
8 8 0 0 0 0 0 0 0 0 0 255 255 0 0 0 154 207 0 255
255 0 0 0 146 207 0 0 0 0 0 0 0 0 0 0 0 0 0 0
disk.dir Mach.Ed2
000 001 000 000
000 102 034 039
I've just downloaded it again from the same link and it has a different time stamped on it, so I'll try running it again. While I'm doing that, have a quick look up this page at my posts as I've edited some of them a few times to add information which you may have missed.antoniovazquezblanco wrote:Are you sure you've downloaded the latest link? It doesn't appear for me!