]> git.sur5r.net Git - freertos/commitdiff
Add extra tests into the regtest tasks.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 7 Mar 2008 11:10:33 +0000 (11:10 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 7 Mar 2008 11:10:33 +0000 (11:10 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@239 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/PPC405_Xilinx_Virtex4_GCC/RTOSDemo/main.c

index 3cb5686454d018b58420865b4e155f45d281264e..0263442848cf161ac316fca21fc8aec0b96d9c74 100644 (file)
@@ -321,6 +321,21 @@ static void prvRegTestTask1( void *pvParameters )
        (\r
                "RegTest1Start:                                 \n\t" \\r
                "                                                               \n\t" \\r
+               "       li              0, 101                          \n\t" \\r
+               "       mtspr   27, 0   #SSR1           \n\t" \\r
+               "       li              0, 201                          \n\t" \\r
+               "       mtspr   990, 0  #SSR2           \n\t" \\r
+               "       li              0, 301                          \n\t" \\r
+               "       mtspr   256, 0  #USPRG0         \n\t" \\r
+               "       li              0, 401                          \n\t" \\r
+               "       mtspr   9, 0    #CTR            \n\t" \\r
+               "       li              0, 501                          \n\t" \\r
+               "       mtspr   8, 0    #LR                     \n\t" \\r
+               "       li              0, 601                          \n\t" \\r
+               "       mtspr   1, 0    #XER            \n\t" \\r
+               "       li              0, 701                          \n\t" \\r
+               "       mtcr    0                                       \n\t" \\r
+               "                                                               \n\t" \\r
                "       li              0, 1                            \n\t" \\r
                "       li              2, 2                            \n\t" \\r
                "       li              3, 3                            \n\t" \\r
@@ -419,6 +434,28 @@ static void prvRegTestTask1( void *pvParameters )
                "       cmpwi   31, 31                          \n\t" \\r
                "       bne             RegTest1Fail            \n\t" \\r
                "                                                               \n\t" \\r
+               "       mfspr   0, 27   #SSR1           \n\t" \\r
+               "       cmpwi   0, 101                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 990  #SSR2           \n\t" \\r
+               "       cmpwi   0, 201                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 256  #USPRG0         \n\t" \\r
+               "       cmpwi   0, 301                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 9    #CTR            \n\t" \\r
+               "       cmpwi   0, 401                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 8    #LR                     \n\t" \\r
+               "       cmpwi   0, 501                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 1    #XER            \n\t" \\r
+               "       cmpwi   0, 601                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfcr    0                                       \n\t" \\r
+               "       cmpwi   0, 701                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "                                                               \n\t" \\r
                "       b RegTest1Start                         \n\t" \\r
                "                                                               \n\t" \\r
                "RegTest1Fail:                                  \n\t" \\r
@@ -440,6 +477,21 @@ static void prvRegTestTask2( void *pvParameters )
        (\r
                "RegTest2Start:                                 \n\t" \\r
                "                                                               \n\t" \\r
+               "       li              0, 100                          \n\t" \\r
+               "       mtspr   27, 0   #SSR1           \n\t" \\r
+               "       li              0, 200                          \n\t" \\r
+               "       mtspr   990, 0  #SSR2           \n\t" \\r
+               "       li              0, 300                          \n\t" \\r
+               "       mtspr   256, 0  #USPRG0         \n\t" \\r
+               "       li              0, 400                          \n\t" \\r
+               "       mtspr   9, 0    #CTR            \n\t" \\r
+               "       li              0, 500                          \n\t" \\r
+               "       mtspr   8, 0    #LR                     \n\t" \\r
+               "       li              0, 600                          \n\t" \\r
+               "       mtspr   1, 0    #XER            \n\t" \\r
+               "       li              0, 700                          \n\t" \\r
+               "       mtcr    0                                       \n\t" \\r
+               "                                                               \n\t" \\r
                "       li              0, 11                           \n\t" \\r
                "       li              2, 12                           \n\t" \\r
                "       li              3, 13                           \n\t" \\r
@@ -535,6 +587,28 @@ static void prvRegTestTask2( void *pvParameters )
                "       cmpwi   31, 131                         \n\t" \\r
                "       bne             RegTest2Fail            \n\t" \\r
                "                                                               \n\t" \\r
+               "       mfspr   0, 27   #SSR1           \n\t" \\r
+               "       cmpwi   0, 100                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 990  #SSR2           \n\t" \\r
+               "       cmpwi   0, 200                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 256  #USPRG0         \n\t" \\r
+               "       cmpwi   0, 300                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 9    #CTR            \n\t" \\r
+               "       cmpwi   0, 400                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 8    #LR                     \n\t" \\r
+               "       cmpwi   0, 500                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfspr   0, 1    #XER            \n\t" \\r
+               "       cmpwi   0, 600                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "       mfcr    0                                       \n\t" \\r
+               "       cmpwi   0, 700                          \n\t" \\r
+               "       bne             RegTest2Fail            \n\t" \\r
+               "                                                               \n\t" \\r
                "       b RegTest2Start                         \n\t" \\r
                "                                                               \n\t" \\r
                "RegTest2Fail:                                  \n\t" \\r