#838 closed defect (fixed)

pcX86 BSP puts GDT in text segment

Reported by: strauman Owned by: Joel Sherrill
Priority: lowest Milestone: 2
Component: bsps Version: 4.6
Severity: normal Keywords:
Cc: bugs@…, strauman@… Blocked By:
Blocking:

Description

The GDT is currently in the text segment. If the text segment is assumed to be constant (e.g., read-only protection or a debugger comparing its contents to file contents [which is how I came across this issue]) this can cause problems because the CPU actually modifies the GDT [access bit]). The attached fix allocates all data structures in the data segment.

Release:
4.6.5

Attachments (1)

pcx86-ldsegs.diff (1.8 KB) - added by strauman on Dec 3, 2006 at 1:31:12 PM.
pcx86-ldsegs.diff

Download all attachments as: .zip

Change History (2)

comment:1 Changed on Nov 4, 2005 at 2:49:05 AM by strauman

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: redundant with #832 [just found out that I have two
accounts; when I click on 'originated by you' only the PRs I
filed under one of them show up...]

Changed on Dec 3, 2006 at 1:31:12 PM by strauman

Attachment: pcx86-ldsegs.diff added

pcx86-ldsegs.diff

Note: See TracTickets for help on using tickets.