Messages in this thread | | | From | Alexander van Heukelum <> | Subject | [PATCHv2 0/4] x86, entry: some cleanup and simplification... | Date | Sun, 18 Jan 2015 12:45:16 +0100 |
| |
Hi Andy,
The last patchset did not compile on i386. Please ignore it. This one should be better. Instead of removing KERNEL_STACK_OFFSET, it is now used consistently on both i386 and x86_64.
Boot tested using qemu (using klibc for userspace) - x86_64, 32-bit userspace, core2duo (sysenter32) - x86_64, 32-bit userspace, phenom (syscall32) - x86_64, 32-bit userspace, vdso=0 (int 0x80) - x86_64, 64-bit userspace - i386, pentium3 (sysenter) - i386, athlon (syscall) - i386, vdso=0 (int 0x80)
They were tested on top of 22f2aa4a0361707a5cfb1de9d45260b39965dead (x86/entry-devel in your tree) and this kernel is now running on my laptop.
Greetings, Alexander
Alexander van Heukelum (4): x86_64: cleanup THREAD_INFO(reg,offset) macro x86_64: embrace KERNEL_STACK_OFFSET i386: clean up KERNEL_STACK_OFFSET x86_64, entry: Create IRET-compatible stack frame at syscall entry
arch/x86/ia32/ia32entry.S | 33 ++++++++-------- arch/x86/include/asm/calling.h | 1 + arch/x86/include/asm/processor.h | 43 ++++++++------------- arch/x86/include/asm/thread_info.h | 17 +++++++- arch/x86/kernel/entry_32.S | 5 ++- arch/x86/kernel/entry_64.S | 79 +++++++++++--------------------------- arch/x86/kernel/process_64.c | 5 +-- 7 files changed, 75 insertions(+), 108 deletions(-)
-- 2.1.0
| |