Skip to content

Commit

Permalink
i386: Fix wrong CPU error message in early boot path
Browse files Browse the repository at this point in the history
- boot/setup.S did not print "PANIC: CPU too old for this kernel"
  ( not visible, also the message did not match )
- I add "# missed before: set ds"
  => somebody should check if I am right with the way to set.
  => seems to be a generic error in setup.S not to set "ds" for error messages.

AK: extracted patch out of other changes
AK: also couldn't find any other case where ds is wrong
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Christian Volkmann authored and Linus Torvalds committed May 21, 2007
1 parent c12ceb7 commit 4c1f59d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/i386/boot/setup.S
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ loader_ok:
call verify_cpu
testl %eax,%eax
jz cpu_ok
movw %cs,%ax # aka SETUPSEG
movw %ax,%ds
lea cpu_panic_mess,%si
call prtstr
1: jmp 1b
Expand Down

0 comments on commit 4c1f59d

Please sign in to comment.