[haiku-commits] Change in haiku[master]: kernel/x86_64: Fix descriptor index off-by-one in assert.

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 1 Jan 2019 23:47:23 +0000

From Michael Lotz <mmlr@xxxxxxxx>:

Michael Lotz has uploaded this change for review. ( 
https://review.haiku-os.org/809


Change subject: kernel/x86_64: Fix descriptor index off-by-one in assert.
......................................................................

kernel/x86_64: Fix descriptor index off-by-one in assert.

This was apparently copied from GlobalDescriptorTable::SetTSS() which
needs two table entries and therefore checks for index + 1. For the
SetUserTLS case this isn't needed and would cause aborts when reaching
the maximum CPU count (64 currently).
---
M src/system/kernel/arch/x86/64/descriptors.cpp
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://git.haiku-os.org/haiku refs/changes/09/809/1
--
To view, visit https://review.haiku-os.org/809
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I27bd777fedadbd3740ac8c791199ec9300b06327
Gerrit-Change-Number: 809
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Lotz <mmlr@xxxxxxxx>

Other related posts:

  • » [haiku-commits] Change in haiku[master]: kernel/x86_64: Fix descriptor index off-by-one in assert. - Gerrit