sgmarz / osblog

The Adventures of OS
MIT License
517 stars 70 forks source link

trap in wrong section in ch1 #25

Closed nolash closed 3 years ago

nolash commented 3 years ago

Dunno how to PR changes to the blog source, can't find it anywhere, so I'll just leave a description here.

The .section .text part in trap.S in the blog post should not be there. It prevents compilation. The source code in this repo shows the correct code.

sgmarz commented 3 years ago

The code in the blog post is incomplete, and it's just a shell. Although, I don't see how .section .text should prevent compilation. Do you have an example?