Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 10, 2012, 01:28:41 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Welcome to PSP-Programming.com
Home Help Search Shop Login Register
Digg This!
Pages: [1]
Print
Author Topic: CMPXCHG  (Read 2831 times)
Noware
C/C++ Developer
C/C++ Developer
Hero Member
*

Karma: +41/-2
Offline Offline

Posts: 685
37495.68 points

View Inventory
Send Money to Noware

Avatar by: Jason Hise


View Profile
« on: June 20, 2009, 10:54:14 AM »

Hi,

Does someone knows if the PSP has a 'cmpxchg' instruction, I can't find it, I like to know to see if I can create a CAS (Compare And Swap/Exchange) or CAS2 function to create lock free stack or queue.

Thx in advance,
 Noware
« Last Edit: June 20, 2009, 11:57:06 AM by Noware » Logged

Reporter - What do you think of western civilization?
Gandhi - I think it would be a good idea!


Flatmush
Has a normal user title
Administrator
Hero Member
*

Karma: +84/-26
Offline Offline

Posts: 1046
12906.27 points

View Inventory
Send Money to Flatmush

The Omniscient One


View Profile WWW
« Reply #1 on: June 22, 2009, 04:18:54 AM »

I don't know if these instructions are in the MIPS that the PSP uses since it follows multiple MIPS standards and isn't strictly R4000, but there is a section on synchronization instructions in this user manual for the R4400:
http://groups.csail.mit.edu/cag/raw/documents/R4400_Uman_book_Ed2.pdf

I'd imagine that if they exist in the allegrex then they are the same, otherwise they may have been omitted like the MMU and other useful features.
Logged

Firmware History: 2.60 -> 2.71 -> 1.50 -> 3.03oe-c

I am nerdier than 66% of all people. Are you nerdier? Click here to find out!I am 62% loser. What about you? Click here to find out!NerdTests.com User Test: The Can I Run A Business Test.

Hehe I'm a "Hero Member" because I bought posts back when they were in the shop.

Creator of FlatEditPSP, funcLib and flAstro
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.429 seconds with 25 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com