| Last change
                  on this file since 523 was
                  444,
                  checked in by satin@…, 7 years ago | 
        
          | 
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
 | 
        | File size:
            962 bytes | 
      
      
        
  | Line |  | 
|---|
| 1 | /* h_reset.c -- Setup default reset handler. | 
|---|
| 2 | * | 
|---|
| 3 | * Copyright (c) 2004  Red Hat, Inc. All rights reserved. | 
|---|
| 4 | * | 
|---|
| 5 | * This copyrighted material is made available to anyone wishing to use, modify, | 
|---|
| 6 | * copy, or redistribute it subject to the terms and conditions of the BSD | 
|---|
| 7 | * License.  This program is distributed in the hope that it will be useful, | 
|---|
| 8 | * but WITHOUT ANY WARRANTY expressed or implied, including the implied | 
|---|
| 9 | * warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  A copy | 
|---|
| 10 | * of this license is available at http://www.opensource.org/licenses. Any | 
|---|
| 11 | * Red Hat trademarks that are incorporated in the source code or documentation | 
|---|
| 12 | * are not subject to the BSD License and may only be used or replicated with | 
|---|
| 13 | * the express permission of Red Hat, Inc. | 
|---|
| 14 | */ | 
|---|
| 15 |  | 
|---|
| 16 | #pragma weak _handler_RESET | 
|---|
| 17 |  | 
|---|
| 18 | void _handler_RESET(void) __attribute__((section(".hwinit"))); | 
|---|
| 19 |  | 
|---|
| 20 | extern void _start(void); | 
|---|
| 21 | void | 
|---|
| 22 | _handler_RESET(void) | 
|---|
| 23 | { | 
|---|
| 24 | mep_di(); | 
|---|
| 25 | goto *(&_start); | 
|---|
| 26 | } | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.