segmentation.py (5294:7222bdaed33b) segmentation.py (5683:e1a1d8bba254)
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any

--- 153 unchanged lines hidden (view full) ---

162 # Get the limit
163 ld t1, seg, riprel, disp, dataSize=2
164 # Get the base
165 ld t2, seg, riprel, 'adjustedDisp + 2', dataSize=4
166 zexti t2, t2, 23
167 wrbase idtr, t2
168 wrlimit idtr, t1
169};
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any

--- 153 unchanged lines hidden (view full) ---

162 # Get the limit
163 ld t1, seg, riprel, disp, dataSize=2
164 # Get the base
165 ld t2, seg, riprel, 'adjustedDisp + 2', dataSize=4
166 zexti t2, t2, 23
167 wrbase idtr, t2
168 wrlimit idtr, t1
169};
170
171def macroop SWAPGS
172{
173 rdval t1, kernel_gs_base, dataSize=8
174 rdbase t2, gs, dataSize=8
175 wrbase gs, t1, dataSize=8
176 wrval kernel_gs_base, t2, dataSize=8
177};
170'''
178'''