How can i replace asm sparc v8plus instruction in to v8
Hi Friends
I am installing the log4cxx product and facing the problem at asm code.
Acutally that code i swritten for v8plus sparc versions but my whole project is base on sparc generic , so using arch as generic i want to install ,the stament which giving error is
asm(" cas [%o0], %l0, %l2"); // if (*p = l0) swap([o0], l2);
so please help me How can i replace this statement for work fine on sparc generic architecture
Regards
Jayant
The CAS instruction is available only on v8plus or later architectures. The instruction is an atomic integer comparison used to synchronise mutlithreaded operations.
Without this instruction, you need to perform synchronization some other way. No suitable atomic instruction is available on prior SPARC architectures.
You have two choices:
1. Support only v8plus (UltraSPARC I) architectures or newer, in which you need not modify anything. You will want to specifiy v8plus architecture in building the entire application, however, to get better code generation.
2. Determine what the function containing this code is doing, and re-write it some other way, such as by using mutex operations from the thread library. The resulting code will be much slower.
I suggest option 1. Do you really need to support such old SPARC chips? Sun has not sold or supported such systems for many years, and current Solaris versions won't run on them.
Similar Messages
-
How to replace sparc v8plus instruction in to v8
Hi Friends
I am installing the log4cxx product and facing the problem at asm code.
Acutally that code i swritten for v8plus sparc versions but my whole project is base on sparc generic , so using arch as generic i want to install ,the stament which giving error is
asm(" cas [%o0], %l0, %l2"); // if (*p = l0) swap([o0], l2);
so please help me How can i replace this statement for work fine on sparc generic architecture
Regards
JayantThe CAS instruction is available only on v8plus or later architectures. The instruction is an atomic integer comparison used to synchronise mutlithreaded operations.
Without this instruction, you need to perform synchronization some other way. No suitable atomic instruction is available on prior SPARC architectures.
You have two choices:
1. Support only v8plus (UltraSPARC I) architectures or newer, in which you need not modify anything. You will want to specifiy v8plus architecture in building the entire application, however, to get better code generation.
2. Determine what the function containing this code is doing, and re-write it some other way, such as by using mutex operations from the thread library. The resulting code will be much slower.
I suggest option 1. Do you really need to support such old SPARC chips? Sun has not sold or supported such systems for many years, and current Solaris versions won't run on them. -
How can I Replace a Hard Drive on a 160gb iPod Classic?
How can I Replace a Hard Drive on a 160gb iPod Classic? I am considering buying an iPod Classic off of eBay which is described as 'broken' and having the 'Red X' showing up on the screen. The seller is starting the bid at a very low price, which raises some concerns for me. For this thread, let us assume that the iPod has a broken hard drive that needs to be replaced in order to function properly. I am assuming that merely 'restoring' it would not suffice. How would I be able to replace the hard drive myself, without bringing it in to a store? I have never fixed an iPod's hardware before, nor a computer or any electrical device. I am a novice at such things. Would I be able to fix it myself without wasting money on a broken iPod and new hard drive? Please provide instructions on how to do so =)
Hello there,
Yes, the red X icon is usually a sign of a bad or damaged hard drive. Sometimes, restoring the iPod will resolve the issue, but rarely. Other users were able to smack the ipod against the side of their leg and gain back full functionality of the iPod.
However, if no such luck with either, your next option would be to replace the drive. For this task, you can either opt to repair and replace the hard drive yourself, or opt to send it into a third party repair business to do the job for you.
I use the guides at [www.ifixit.com|http://www.ifixit.com> to help me replace broken parts on an iPod. These guides provide excellent step-by-step instructions as well as photos on how to repair any part from an iPod.
Some other good sites for purchasing repair parts include the following:
[iDemiGods|http://www.idemigods.com>
[RapidRepair|http://www.rapidrepair.com>
[iResq|http://www.iresq.com>
Lastly, I would also like to remind you that ebay also has several great deals on excellent iPod replacement parts. It's where I purchase a majority of mine.
Hope this helps.
B-rock -
How can i replace it?
You probably do in NZ ..................
The Apple iphone warranty is not and never has been from the very first iPhone, international
Sorry but you were stitched up -
How can i replace my new iPad mini to ipad air
how can I replace my new iPad mini to a new iPad air online
If you bought the Mini within the past 14 days you can get a refund and buy the Air. Take it to an Apple store.
Otherwise.......
Your only option is to sell the iPad and buy a new one.
Apple Reuse and Recycle Program
http://store.apple.com/us/browse/reuse_and_recycle
How to Sell Your Old iPad http://tinyurl.com/85d69lk
Other sources to sell.
eBay Instant Sell http://instantsale.ebay.com/?search=ipad
Sell and Recycle Used Electronics - Gazelle http://www.gazelle.com/
For instant gratification in selling a used iPhone or iPad, Gazelle’s Gadget Trader, an iOS app, is tough to beat. In seconds it detects the device and reveals how much it is worth in good condition. Tap the Sell This Phone to Gazelle button and the deed is done.
Sell Electronics for Cash - Next Worth http://www.nextworth.com/
Buy My Tronics http://www.buymytronics.com/
Sell Your iPad http://www.sellyourmac.com/mac-product-guides/ipad.html
Totem http://www.hellototem.com/
How To Sell Your Old iPad: 5 Places To Trade In Your Old Device
http://www.huffingtonpost.com/2013/11/05/ipad-trade-in_n_4218964.html
THIS IS VERY IMPORTANT - What to do before selling or giving away your iPhone, iPad, or iPod touch
http://support.apple.com/kb/HT5661
Cheers, Tom -
How can I replace an administrators account?
I have an older Powerbook G4 laptop that someone else would like. How can I replace the adminsitrator's account?
Hi Bob,
2 ways to go...
1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
*Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
3. Click the Erase tab.
4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
5. Select your Mac OS X volume.
6. Highlight the drive, select Partition Tab, then Format type... MacOS Extended Journalled, select the Security Options button, choose Zero Out Data, Erase... after completion do a new install.
Or...
Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
In the same pref pane highlight your old account, click the little minus icon, then use Disk Utility to Secure Erase Free Space. -
How can I replace the cursor in the below query?
I have this below query which calls a stored procedure that takes only 1 item's attributes at a time. But because of performance problems we are
required to remove the cursor. How can I replace the below cursor logic with set operations or CTE? Please advice.
DECLARE db_cursor_ava CURSOR
FOR
SELECT t.[agent-id],
t.[start-date],
t.[end-date],
t.[monitor-days],
t.[monitor-start],
t.[monitor-end],
t.[timezone-offset]
FROM @tmpAgentPeriodTimeRange t
OPEN db_cursor_ava
FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
@stDateTime_ava,
@endDateTime_ava,
@monDays_ava,
@monSt_ava,
@monEnd_ava,
@offset_ava
WHILE @@FETCH_STATUS = 0
BEGIN
DELETE
FROM @tmpMonitorPeriod
DELETE
FROM @tmpFinalResult
SET @runID = 1
IF(@endDateTime_ava>DATEADD(MI,@offset_ava, GETUTCDATE()))
BEGIN
SET @endDateTime_ava=DATEADD(MI,@offset_ava, GETUTCDATE())
END
INSERT INTO @tmpMonitorPeriod
EXEC core.usp_GetMonitoringPeriod
@startDate = @stDateTime_ava,
@endDate = @endDateTime_ava,
@monitoringDays = @monDays_ava,
@monitoringStart = @monSt_ava,
@monitoringEnd = @monEnd_ava
SELECT @maxID = MAX(tm.id)
FROM @tmpMonitorPeriod tm
FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
@stDateTime_ava,
@endDateTime_ava,
@monDays_ava,
@monSt_ava,
@monEnd_ava,
@offset_ava
END
CLOSE db_cursor_ava
DEALLOCATE db_cursor_ava
mayooran99You've been down this path before - and the response is exactly the same.
how to replace cursor logic
And I'll suggest that you post the entire code - since you repeatedly delete 2 table variables but only populate one. The setting of @maxID also seems to have no purpose. And perhaps the issue here isn't the cursor but the general approach. Who knows
- but it appears you may have prematurely assumed that the cursor is the problem. -
How can I replace my old print driver with my new printer driver on 13
how can I replace my old print driver with my new print driver on photo elements 13
The print driver is not installed in PSE.
Check with the manufacturer of your printer. -
How Can I replace newScale Text Strings with Custom Values?
How Can I replace newScale Text Strings with Custom Values?
How can I replace newScale text strings with custom values?
All newScale text is customizable. Follow the procedure below to change the value of any text string that appears in RequestCenter online pages.
Procedure
1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:
a) Navigate to the RequestCenter.ear/config directory.
b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2
c) Save the file.
d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.
e) Stop and restart the RequestCenter service.
f) Log in to RequestCenter and browse to the page that has the text you want to overwrite. In front of the text you will now see the String ID.
g) Note down the String ID's you want to change.
2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.
3. Create the following sub-directory: res/resources
4. Create the following empty text files in the directory you just created:
RequestCenter_0.properties
RequestCenter_1.properties
RequestCenter_2.properties
RequestCenter_3.properties
RequestCenter_4.properties
RequestCenter_5.properties
RequestCenter_6.properties
RequestCenter_7.properties
5. Add the custom text strings to the appropriate RequestCenter_<Number>.properties file in the following manner (name-value pair) StringID=YourCustomTextString
Example: The StringID for "Available Work" in ServiceManager is 699.
If you wanted to change "Available Work" to "General Inbox", you would add the following line to the RequestCenter_0.properties file
699=General Inbox
Strings are divided into the following files, based on their numeric ID:
Strings are divided into the following files, based on their numeric ID:
String ID File Name
0 to 999 -> RequestCenter_0.properties
1000 to 1999 -> RequestCenter_1.properties
2000 to 2999 -> RequestCenter_2.properties
3000 to 3999 -> RequestCenter_3.properties
4000 to 4999 -> RequestCenter_4.properties
5000 to 5999 -> RequestCenter_5.properties
6000 to 6999 -> RequestCenter_6.properties
7000 to 7999 -> RequestCenter_7.properties
6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files
7. Restart RequestCenter.
Your customized text should be displayed.I've recently come across this information and it was very helpful in changing some of the inline text.
However, one place that seemed out of reach with this method was the three main buttons on an "Order" page. Specifically the "Add & Review Order" button was confusing some of our users.
Through the use of JavaScript we were able to modify the label of this button. We placed JS in the footer.html file that changes the value of the butt -
AFTER UPGRADING TOMOUNTAIN LION SAFARI 6.0 DOESN"T WORK HOW CAN I REPLACE IT OR UPGRADE IT?
An answer will require more specific information of the problems you are experiencing Mpittas2.
In general, if you installed any third party anti-virus utilities, get rid of them. They can cause problems like this.
There is no need to post your question multiple times. If you don't get an answer right away give it some time, a few hours at least, and please deselect your caps lock key. This will increase the likelihood of receiving competent assistance.
Thanks! -
How can I replace my IPhone in France?
How can I replace my IPhone in France? I have bought an IPhone 5 in Paris and now its display is broken and the warranty is expired. Can I ask someone to do the replacement for me there?
If you bought the iPhone in Paris, and live in another EU country, the warranty and out-of-warranty service will be valid throughout the EU. If you do not live in the EU, then you must send the iPhone to someone you trust in France to handle the out-of-warranty replacement for you.
-
I cannot locate all of my tool .tpl files. How can I replace them?
I cannot locate all of my tool .tpl files. How can I replace them?
You can store your tool preset anywhere you wand. Each version of Photoshop ships with some Adobe supplied tools presets these are installed in the Tools folder in Photoshop Presets folder. You can use Search in Finder or Windows File explored to find all *.tpl files on your system.
-
HT1937 How can I replace my IPhone 4S by new one IPhone 4S ?
How can I replace my IPhone 4S by new one IPhone 4S ? ( in Canada,Newfoundland, St.john's )
Why do you want to replace your 4S with an identical phone? The logical response would be "sell the one you have and buy a new one".
-
Currently on a business trip in China. How can I replace my iphone 5's battery?
Currently I'm on a business trip in China. How can I replace my iphone 5's battery? My phone is eligible to the battery replacement program.
This can only be done in the country where you bought the phone originally. But you can call Apple Support to register for that program.
-
How can I replace my start up hard drive in mac pro 2008?
Mi hd is geting old and I am worry about loosing Everything any time how can I replace my HD without reinstaling Every single Aplications?
Any Advice thanks.Clone it.
Or install OS X and it will ask to use Setup Assistant and import everything when it sees another system drive.
Use cloning as a backup method.
Keep only the OS and apps and a small user library on the boot drive.
Now is a good time to invest in an SSD for your system.
A new drive for data and media files.
Use your existing drive(s) as backups and pull them once the system and data are copied, cloned, and moved over.
Use TimeMachine for some file backup as well.
Clone your system:
How to Clone a Volume
Using Cloning as a Backup Strategy
See also Erasing a Drive, How and Why to Partition a Drive, RAID.
http://www.macupdate.com/app/mac/7032/carbon-copy-cloner
Maybe you are looking for
-
In which table i ll get Stock Batch Charcterstics data ?
hai To get the Stock Batch Data i am using MCHA table But Here i am getting this Manf Datae and Exp date all blank in which table i ll get full inforamtion.
-
Why can't i install ios 6.1.4 to my iphone 5? I hate ios 7!
So, the ios 7 is very nice and i like to see, but the 3g switcher is missing, so my baterry is die.... SO help me!!! I want to downgrade ios 6!!!!
-
Hello everyone, Give you a little background on the hardware/software which we are running to do a Windows 8.1 Deployment, we have an VM of Windows Server 2008 R2 with Windows Deployment Services installed and configured correctly. For the boot image
-
I just got the new aluminum macbook, and am transferring things from my old Powerbook G4 to my new macbook through an external hard drive. I was able to import all of my photos, but for some reason it wont let me import my albums. What should I be ex
-
I need to do some experimenting with the Standard Edition of Oracle 8.1.7, but I can't figure out how to tell the installer that's the one I want. Does it have to do with which options are installed, i.e., don't include options available in EE? Thank