新闻  |   论坛  |   博客  |   在线研讨会
Patch needed in vxWorks exception service routines when using WindRiver OCD emulator with a Freescale E500 core processor
tornado | 2008-02-24 21:04:56    阅读:11836   发布文章

Problem Description
When an emulator is set up to catch an exception (exceptions that correspond to a 1 in the ETM parameter), including the cases of software and hardware breakpoint, the target  should not be allowed to execute any part of the exception handler.  

Depending on how fast the CPU is running, sometimes the E500 core will execute the first one or two instructions, of the exception service routine, before being stopped by the emulator.  

This is considered unwanted code execution. One possible unwanted side-effect might be  a register may be modified. This may have detrimental effect on subsequent code execution, such as stepping or running after hitting a breakpoint.

Problem Solution
For this reason, the exception service routines in question need to be patched. The following 2 instructions should be inserted at the beginning of the exception service routines to be trapped.  

   isync
   nop

If the processor cannot be stopped in time, executing these two instructions should have no adverse effects on the code.

Exception service routines in vxWorks contain stub code and labels at a relative offset from the vectors. This is done intentionally so that users can call the APIs based on these relative offsets. These include, but not limited to, excVecGet/excVecSet, exc*Connect, possibly vxMemProbe. Inserting instructions at the beginning of the exception service routine breaks these APIs.  

Given the fact that vxWorks exception handlers are structured this way, the isync/nop patch modification should only be used as temporary remedy for code debugging purpose. During this debug phase, users should make sure that they don't call the APIs in question.

Also, since these APIs are called during the system boot process, the code modifications should only be done after boot-up.

In summary, here is a short procedure for this.

1.    Use the emulator to boot the board and launch vxWorks.
2.    Manually halt it by clicking on the Suspend button in the Debug window.
3.    From the Register window, expand the Interrupt register group to find out the starting addresses for the exception service routines in question.
4.    From the Memory window, enter an address to display it. Enter 0x60000000 for the first location, and 0x4C00012C for the second one. Repeat this for each of the exception service routines in question. Since emulator is set up to catch these exceptions, these exception service routines will never get a chance to execute beyond the first couple of instructions.
5.    Set any breakpoints if so desired, before clicking on the Resume button in the Debug window to let it run again.

Since these addresses usually don't change, you can use a script file to make it easier:

      sml addr1 4c00012c
      sml addr1+4 60000000 
    

*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。

参与讨论
登录后参与讨论
Caasfw [ 匿名]  2008-11-24 20:11:43 

morganite pink gold ring most powerful gold detector more money spare time montanas money most prize money i teenis mormon gold plates location mothers rings 14k gold engraved montezume gold tequila more 49 ers sift gold mothers day e-card with money monopoly starting amount of money montana silver money clips mortal kombat gold more money in nfs mostwanted moroccan resort gold coast monsanto rbgh money to lose mortalkombat armagedon money cheat monopoly money box montana hard money lenders monopoly money templates morocco visas

Caasfw [ 匿名]  2008-11-24 19:50:22 

morganite pink gold ring most powerful gold detector more money spare time montanas money most prize money i teenis mormon gold plates location mothers rings 14k gold engraved montezume gold tequila more 49 ers sift gold mothers day e-card with money monopoly starting amount of money montana silver money clips mortal kombat gold more money in nfs mostwanted moroccan resort gold coast monsanto rbgh money to lose mortalkombat armagedon money cheat monopoly money box montana hard money lenders monopoly money templates morocco visas

Catrwe [ 匿名]  2008-11-24 19:29:36 

moon gold foil most gold medals at olympics montan black gold more than money on pbs more money for military disability monopoly money 10 mortgage account money friend pay mostinvestor high yield money investments morocco money laundering montana gold bullets morrocan visa montana gold investing most reputable gold bullion dealers montana make money montana gold bullet inc mortgage money brockage mothers california gold chip monument visa credit card website moth money moo3 money edit mosquito gold mine

Catrwe [ 匿名]  2008-11-24 19:09:00 

moon gold foil most gold medals at olympics montan black gold more than money on pbs more money for military disability monopoly money 10 mortgage account money friend pay mostinvestor high yield money investments morocco money laundering montana gold bullets morrocan visa montana gold investing most reputable gold bullion dealers montana make money montana gold bullet inc mortgage money brockage mothers california gold chip monument visa credit card website moth money moo3 money edit mosquito gold mine

Frondsee [ 匿名]  2008-11-24 18:48:04 

montana gold silver mining maps monopoly money print out monopoly millenium money mothers ring white gold mortgage good faith money mosaik mastercard paypass most money won on jeprody montana gold nugget jewelry mother teacher destroyer gold 2lp monologues for teachers money bags mostinvestor gold coin investment montana black gold trap door mortal kombat armageddon cheats money montgomery gold volleyball club texas mosiac mastercard morgan gold filmmaker more money then brains racing mosai mastercard monoanatomic gold mosiak mastercard mortgage money market account montana gold 9mm

Frondsee [ 匿名]  2008-11-24 18:26:57 

montana gold silver mining maps monopoly money print out monopoly millenium money mothers ring white gold mortgage good faith money mosaik mastercard paypass most money won on jeprody montana gold nugget jewelry mother teacher destroyer gold 2lp monologues for teachers money bags mostinvestor gold coin investment montana black gold trap door mortal kombat armageddon cheats money montgomery gold volleyball club texas mosiac mastercard morgan gold filmmaker more money then brains racing mosai mastercard monoanatomic gold mosiak mastercard mortgage money market account montana gold 9mm

Caasder Fronds [ 匿名]  2008-11-24 17:45:12 

mosquito gold mine monopoly money 500 mothers gold headlight cleaner most advance gold detector monopoly disney money mother kisses daughter for money morrowind pc gold cheat mortgage grant money mortal kombat gold kitana more money more problems mace montana well being grant money montana gold rush monster hunter freedom gold tickets monopoly super money grab montana gold rudh mormon money romney montana christian conferences 2007 paypal most gold bearing montgomery gold star park monster jennifer gold monster money sendak

Caadf [ 匿名]  2008-11-24 17:24:15 

morrowind gold morocco money beads mothers california gold scratch remover morocco travel visa information montana gold buillets morrowind gold exploit more abba gold morrowind money cheats montrose county gold mines colorado motana gold mines montana gold mine moro gold montgomery county gold mines monogrammed money clip mopar ember gold color monthly gold coast condo rentals most exspensive gold coin mortal kombat armageddon money morocco visa form morrowwind xbox cheats gold

Caadf [ 匿名]  2008-11-24 17:03:33 

morrowind gold morocco money beads mothers california gold scratch remover morocco travel visa information montana gold buillets morrowind gold exploit more abba gold morrowind money cheats montrose county gold mines colorado motana gold mines montana gold mine moro gold montgomery county gold mines monogrammed money clip mopar ember gold color monthly gold coast condo rentals most exspensive gold coin mortal kombat armageddon money morocco visa form morrowwind xbox cheats gold

Caasdg [ 匿名]  2008-11-24 16:43:04 

monsoon hava gold ces $30 moon gold foil faux leaf mortal kombat gold sega dreamcast mossberg model 535 gold trigger monotomic gold military use montezuma gold curse mortgage approvale no money down morganite earrings yellow gold monopoly money porn monotary value of mexican money monty python sounds money song morrowind cheat gold mortgage free life money secrets monogrammed gold charms motherlode gold prospecting morocco visa requirements most valuable gold coin morning conference october 2007 paypal montana gold sights monogramed oval gold slide montana gold claims

Caasdg [ 匿名]  2008-11-24 16:22:24 

monsoon hava gold ces $30 moon gold foil faux leaf mortal kombat gold sega dreamcast mossberg model 535 gold trigger monotomic gold military use montezuma gold curse mortgage approvale no money down morganite earrings yellow gold monopoly money porn monotary value of mexican money monty python sounds money song morrowind cheat gold mortgage free life money secrets monogrammed gold charms motherlode gold prospecting morocco visa requirements most valuable gold coin morning conference october 2007 paypal montana gold sights monogramed oval gold slide montana gold claims

Caasder Fronds [ 匿名]  2008-11-24 10:49:54 

monogrammed money montana black gold quest 4 morgan stanley money market rate morning star chapel seed money montana gold spraypaint supplier uk morley money market fund dublin monopoly money 10 moscow tourist visa monopoly money girl most advance gold detector moroni gold plates monopoly super money grab monster money coupon book mootsies tootsies gold morningstar mastercard motels gold beach oregon monoco gold casino moroccan money 2008 motherload quartz gold montana gold eye fish mont blanc gold pens

Caasder Fronds [ 匿名]  2008-11-24 10:29:30 

monogrammed money montana black gold quest 4 morgan stanley money market rate morning star chapel seed money montana gold spraypaint supplier uk morley money market fund dublin monopoly money 10 moscow tourist visa monopoly money girl most advance gold detector moroni gold plates monopoly super money grab monster money coupon book mootsies tootsies gold morningstar mastercard motels gold beach oregon monoco gold casino moroccan money 2008 motherload quartz gold montana gold eye fish mont blanc gold pens

Caasder Fronds [ 匿名]  2008-11-24 10:08:54 

montana gold claims montana gold rush montana gold buillets montague money mess morpheus gold motherfucking cash money millionaire lyrics monololy money mortgage banking anti money laundering montanas precious gold monopoly money distribution monster money sendak most gold in wow montana black gold bow sights mothers pendant white gold morrowind gold bar mortal kombat gold rom montana gold label mosaik mastercard prepaid mormon gold coins mother son sex video mastercard mono-atomic gold

Caasder Fronds [ 匿名]  2008-11-24 09:48:13 

montana gold claims montana gold rush montana gold buillets montague money mess morpheus gold motherfucking cash money millionaire lyrics monololy money mortgage banking anti money laundering montanas precious gold monopoly money distribution monster money sendak most gold in wow montana black gold bow sights mothers pendant white gold morrowind gold bar mortal kombat gold rom montana gold label mosaik mastercard prepaid mormon gold coins mother son sex video mastercard mono-atomic gold

Caasder Fronds [ 匿名]  2008-11-24 09:27:28 

mosaic mastercard product protection morocco money beads more money for nintendogs more gold than golden mortgage money blockage associate morroco visa uk more money puff daddy mont blanc gold rollerball pen monotary value of mexican money moola gold rush solver montigo bay jamaca money exchange mother teacher destroyer gold 2lp monty python heart of gold montana gold realty hamilton mortgage choice ge money mortal kombat gold mother lode gold juniper monthly visa bullentin most gold singles mortgage good faith money motherboard gold

Caasder Fronds [ 匿名]  2008-11-24 09:06:12 

mosaic mastercard product protection morocco money beads more money for nintendogs more gold than golden mortgage money blockage associate morroco visa uk more money puff daddy mont blanc gold rollerball pen monotary value of mexican money moola gold rush solver montigo bay jamaca money exchange mother teacher destroyer gold 2lp monty python heart of gold montana gold realty hamilton mortgage choice ge money mortal kombat gold mother lode gold juniper monthly visa bullentin most gold singles mortgage good faith money motherboard gold

Cadds [ 匿名]  2008-11-24 08:45:12 

moroni gold plates monopoly super money grab monster money coupon book mootsies tootsies gold morningstar mastercard motels gold beach oregon monoco gold casino moroccan money 2008 motherload quartz gold montana gold eye fish mont blanc gold pens montana gold tea mortgage money brockage morobe gold mormon gold coin appraiser mortgage foreclosure crisis msn money mortgage packag money center bank morocco visas most valuable gold coins motana gold bullets morning glory gold mine

Cadds [ 匿名]  2008-11-24 08:24:30 

moroni gold plates monopoly super money grab monster money coupon book mootsies tootsies gold morningstar mastercard motels gold beach oregon monoco gold casino moroccan money 2008 motherload quartz gold montana gold eye fish mont blanc gold pens montana gold tea mortgage money brockage morobe gold mormon gold coin appraiser mortgage foreclosure crisis msn money mortgage packag money center bank morocco visas most valuable gold coins motana gold bullets morning glory gold mine

Caatonds [ 匿名]  2008-11-24 08:03:52 

monthly gold prices 1980 mortgage account money friend pay more money ssi or ssdi more money more problems mace mortgage free life money secrets month premium gold most olympic gold medals mortgage interest va rate money mortal kombat gold downloads montana black gold freefall rest monty python money sheet music mortal kombat armageddon gold coin mortgage loan calculator colorado money moscow gold teenrens statue mortagee home auction gold coast monroe louisiana gold caps dentist montanas money montreal adult high school bullion mothers californis gold scratch remover monty byrom eddie money

Caatonds [ 匿名]  2008-11-24 07:43:09 

monthly gold prices 1980 mortgage account money friend pay more money ssi or ssdi more money more problems mace mortgage free life money secrets month premium gold most olympic gold medals mortgage interest va rate money mortal kombat gold downloads montana black gold freefall rest monty python money sheet music mortal kombat armageddon gold coin mortgage loan calculator colorado money moscow gold teenrens statue mortagee home auction gold coast monroe louisiana gold caps dentist montanas money montreal adult high school bullion mothers californis gold scratch remover monty byrom eddie money

Cands [ 匿名]  2008-11-24 07:22:17 

monopoly money printouts most horsepower least money montana gold series paint most stores accept visa debit moose gold charm most australian olympic gold medals mortalkombat armagedon money cheat mortal kombat gold fatalities monopoly money clip art mortgage loan officer license money mosaic mastercard website monygram money transfer montana investing in gold motel nerang gold coast moses lake money saver moon snail gold charm motels at gold beach oregon monoatomic gold mosaik mastercard online statement monopoly visa edition more money for katrina victims

Cands [ 匿名]  2008-11-24 07:01:38 

monopoly money printouts most horsepower least money montana gold series paint most stores accept visa debit moose gold charm most australian olympic gold medals mortalkombat armagedon money cheat mortal kombat gold fatalities monopoly money clip art mortgage loan officer license money mosaic mastercard website monygram money transfer montana investing in gold motel nerang gold coast moses lake money saver moon snail gold charm motels at gold beach oregon monoatomic gold mosaik mastercard online statement monopoly visa edition more money for katrina victims

Caasder Fronds [ 匿名]  2008-11-24 06:40:55 

mosaik mastercard travel insurance more money more problems remix montana make money moscow money unit mothers saving money coupons mosti gold montana gem rockhound gold mother honesty coat money morrowind gold cheat xbox more money in your wallet motana gold mines moorocan apartments gold coast monteil gold montreal gold teeth mortalkombat armagedon money cheat monterrey visas mother of pearl gold lockets mormon church buying gold montana gold series paint monsoon hava gold mosaic mastercard and register

Caasder Fronds [ 匿名]  2008-11-24 06:20:27 

mosaik mastercard travel insurance more money more problems remix montana make money moscow money unit mothers saving money coupons mosti gold montana gem rockhound gold mother honesty coat money morrowind gold cheat xbox more money in your wallet motana gold mines moorocan apartments gold coast monteil gold montreal gold teeth mortalkombat armagedon money cheat monterrey visas mother of pearl gold lockets mormon church buying gold montana gold series paint monsoon hava gold mosaic mastercard and register

Caaonds [ 匿名]  2008-11-24 05:59:33 

monty byrom eddie money mother son sex video mastercard montana black gold sightsw mortgage money saver monteblanc money clips montana money investing mortal kombat armageddon money most valuable american paper money mopney money montgomery county gold monopoly money clip art mortgage rip offs money savings more money then brains racing mothers gold wax mosaic gold hurrican montana prairie gold wheat website mother load money management monopoly super money grab mostinvestor private investor money lender montreal adult high school bullion most gold medals

Caaonds [ 匿名]  2008-11-24 05:38:35 

monty byrom eddie money mother son sex video mastercard montana black gold sightsw mortgage money saver monteblanc money clips montana money investing mortal kombat armageddon money most valuable american paper money mopney money montgomery county gold monopoly money clip art mortgage rip offs money savings more money then brains racing mothers gold wax mosaic gold hurrican montana prairie gold wheat website mother load money management monopoly super money grab mostinvestor private investor money lender montreal adult high school bullion most gold medals

Ctnds [ 匿名]  2008-11-24 05:17:47 

montana sapphires mens gold rings most gold singles monopoly money printed morroco visa uk most money on cash cab most prize money i teenis morrowind cheat additem gold motel buena visa montana silver money clips monroe louisiana gold teeth dentist more money for construction loan mortgage loan graph va money mortal kombat gold kung lao morrocco visas mother gold satin underwire montazumas restaurant gold coast most prize money in tennis mosquito gold mine montblanc gold ballpoint monoatomic gold military use montana absaroka mountain gold fields

Ctnds [ 匿名]  2008-11-24 04:56:53 

montana sapphires mens gold rings most gold singles monopoly money printed morroco visa uk most money on cash cab most prize money i teenis morrowind cheat additem gold motel buena visa montana silver money clips monroe louisiana gold teeth dentist more money for construction loan mortgage loan graph va money mortal kombat gold kung lao morrocco visas mother gold satin underwire montazumas restaurant gold coast most prize money in tennis mosquito gold mine montblanc gold ballpoint monoatomic gold military use montana absaroka mountain gold fields

Carnds [ 匿名]  2008-11-24 04:35:56 

most famous olympic gold medalist mortgage calculator young money morgan gold hartford more stalker money most olympic gold medal montana silversmiths money clips monster hunter freedom money hack most gold gloves center fielder montgomery county eugene gold moscow northwest airlines visa mosaik mastercard online statement morrowind gold cheat montomery ward money orders more money for nintendogs monterey internet bank pearl gold montserrat money laundering prosecutions montana gold spraypaint supplier uk monopoly money for here now motels in gold canyon arizona mortgage bond money mortgage money source spokane wa

Carnds [ 匿名]  2008-11-24 04:15:25 

most famous olympic gold medalist mortgage calculator young money morgan gold hartford more stalker money most olympic gold medal montana silversmiths money clips monster hunter freedom money hack most gold gloves center fielder montgomery county eugene gold moscow northwest airlines visa mosaik mastercard online statement morrowind gold cheat montomery ward money orders more money for nintendogs monterey internet bank pearl gold montserrat money laundering prosecutions montana gold spraypaint supplier uk monopoly money for here now motels in gold canyon arizona mortgage bond money mortgage money source spokane wa

Carnds [ 匿名]  2008-11-24 03:54:39 

mortal kombat gold rom morrocian visa application monroe louisiana dentist gold caps moon gold foil monte carlo gold wheels more money puff daddy most reputable gold selling morocco nonimmigrant visa monster bang gold 2 mortgage calculator yong money montnas gold rush motel 6 gold beach oregon most popular gold website mosaico gold jewlery monogram money order mosaic gold bronze range mormon gold plates location monopoly money mint motels in gold coast monogrammed gold earrings montana history penobscot gold mine

Carnds [ 匿名]  2008-11-24 03:33:39 

mortal kombat gold rom morrocian visa application monroe louisiana dentist gold caps moon gold foil monte carlo gold wheels more money puff daddy most reputable gold selling morocco nonimmigrant visa monster bang gold 2 mortgage calculator yong money montnas gold rush motel 6 gold beach oregon most popular gold website mosaico gold jewlery monogram money order mosaic gold bronze range mormon gold plates location monopoly money mint motels in gold coast monogrammed gold earrings montana history penobscot gold mine

Caasnds [ 匿名]  2008-11-24 03:12:26 

moon guard wow gold horde montana black gold rest moracan money monotomic gold moody blues gold montego bay gold rum montana gold sights montezumas gold montana gold 400ml monopoly money girl monopoly money to teach mortal kombat gold kai montgomery county maryland gold mines mosaic mastercard montreal mormon gold tub morpheus gold monopoly visa mono gold manna ormus mother kisses daughter for money moorish idol gold fish pendant

Caasnds [ 匿名]  2008-11-24 02:51:25 

moon guard wow gold horde montana black gold rest moracan money monotomic gold moody blues gold montego bay gold rum montana gold sights montezumas gold montana gold 400ml monopoly money girl monopoly money to teach mortal kombat gold kai montgomery county maryland gold mines mosaic mastercard montreal mormon gold tub morpheus gold monopoly visa mono gold manna ormus mother kisses daughter for money moorish idol gold fish pendant

Pharm65 [ 匿名]  2008-10-17 15:43:49 

Very nice site!

Pharm45 [ 匿名]  2008-10-17 15:43:41 

Very nice site! cheap viagra

Pharm19 [ 匿名]  2008-10-12 22:01:46 

Very nice site!

Pharm96 [ 匿名]  2008-10-12 22:01:40 

Very nice site! cheap viagra

Pharm21 [ 匿名]  2008-10-10 16:31:15 

Very nice site!

Pharm19 [ 匿名]  2008-10-10 16:31:12 

Very nice site! cheap viagra

Pharm28 [ 匿名]  2008-10-09 00:27:11 

Very nice site!

Pharm5 [ 匿名]  2008-10-09 00:27:08 

Very nice site! cheap viagra

qingcai [ 匿名]  2008-10-08 18:57:29 

Pharm67 [ 匿名]  2008-10-05 08:29:11 

Very nice site!

Pharm5 [ 匿名]  2008-10-05 08:28:55 

Very nice site! cheap viagra

Pharm28 [ 匿名]  2008-10-05 08:28:35 

Very nice site!

Pharm48 [ 匿名]  2008-10-05 08:28:32 

Very nice site! cheap viagra

Caasasder Frasonds [ 匿名]  2008-09-24 05:13:02 

Its wonderfull site.

推荐文章
最近访客