]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Rework Global Descriptor Table loading
authorGraeme Russ <graeme.russ@gmail.com>
Thu, 29 Dec 2011 10:45:33 +0000 (21:45 +1100)
committerGraeme Russ <graeme.russ@gmail.com>
Wed, 4 Jan 2012 11:17:19 +0000 (22:17 +1100)
commit74bfbe1ba5ba99adccdc26dc4adbfb9221849310
tree93436c43ffe77de71278ca34b775199a902197ec
parent109ad143f8f2a948dc6628f55dbb6a8905087bfe
x86: Rework Global Descriptor Table loading

The inline assembler is ugly and uses hard coded magic numbers. Make it more
elegant to allow cleaner implementation of future GDT related patches. The
compiler seems smart enough to generate the same code anyway

--
Changes for v2:
 - Rebased against revised patch #3
 - Use GDT size define instead of magic number
 - Added commit message
arch/x86/cpu/cpu.c