Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148209669
D4414.id10831.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
635 B
Referenced Files
None
Subscribers
None
D4414.id10831.diff
View Options
Index: sys/i386/i386/sys_machdep.c
===================================================================
--- sys/i386/i386/sys_machdep.c
+++ sys/i386/i386/sys_machdep.c
@@ -275,8 +275,7 @@
ext = (struct pcb_ext *)kmem_malloc(kernel_arena, ctob(IOPAGES+1),
M_WAITOK | M_ZERO);
/* -16 is so we can convert a trapframe into vm86trapframe inplace */
- ext->ext_tss.tss_esp0 = td->td_kstack + ctob(td->td_kstack_pages) -
- sizeof(struct pcb) - 16;
+ ext->ext_tss.tss_esp0 = (vm_offset_t)td->td_pcb - 16;
ext->ext_tss.tss_ss0 = GSEL(GDATA_SEL, SEL_KPL);
/*
* The last byte of the i/o map must be followed by an 0xff byte.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 17, 12:54 PM (16 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29826149
Default Alt Text
D4414.id10831.diff (635 B)
Attached To
Mode
D4414: Set %esp correctly in the extended TSS.
Attached
Detach File
Event Timeline
Log In to Comment