Changeset 34db7fa in mainline for kernel/test/debug/mips1.c


Ignore:
Timestamp:
2006-12-12T12:32:02Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
96348adc
Parents:
df496c5
Message:

cleanup kernel tests infrastructure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/debug/mips1.c

    rdf496c5 r34db7fa  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28 
     29#ifdef mips32
    2830
    2931#include <print.h>
     
    3840#include <arch.h>
    3941
     42char * test_mips1(void)
     43{
     44        printf("You should enter kconsole debug mode now.\n");
     45       
     46        asm volatile (
     47                "break\n"
     48        );
     49       
     50        return "Back from debug mode";
     51}
    4052
    41 void test_mips1(void)
    42 {
    43 #ifdef mips32
    44         printf("MIPS debug test #1\n");
    45 
    46         printf("You should enter kconsole debug mode now.\n");
    47 
    48         asm __volatile__ ("break");
    49 
    50         printf("Test passed.\n");
    51 #else
    52         printf("This test is availaible only on MIPS32 platform.\n");
    5353#endif
    54 }
Note: See TracChangeset for help on using the changeset viewer.