Re: Memory mapped hardware registers

From: Michael Schnell (mschnell_at_bschnell_dot_de_at_aol.com)
Date: 01/23/05

  • Next message: alan tsai: "what's behind JTAG/ICE break-in action"
    Date: Sun, 23 Jan 2005 21:32:09 +0100
    
    

    I suppose you are using µCLinux. As there is no memory management unit,
    you can access the hardware as well in Kernel as in user mode.

    Why not just load a pointer with the appropriate address:

      struct _SIMCR *psimcr

      psimcr = (struct _SIMCR *) 0xYFFA00;
      psimcr -> exoff = 0x11;
    etc.

    BTW.: You are the first person I meet using the GNU compiler with an
    68K. I might be intending to do that (for a non-Linux project). So I
    have some questions. What debugger are you using ? Does this work OK ?

    Thanks
    -Michael


  • Next message: alan tsai: "what's behind JTAG/ICE break-in action"

    Relevant Pages

    • Re: User/Kernel Mode still relevant
      ... i understand that with user mode, ... they can't access the computer system devices ... directly, while with mode bit set to kernel or supervisor mode, the ... protect processes from each other as dedicated hardware is there to ...
      (comp.os.linux.development.system)
    • Re: Calling INT 15H functions from Linux
      ... Not a kernel programmer, so take this with a pinch of salt, but I don't ... think you can do this from user mode. ... crash the machine by wedging the hardware. ...
      (uk.comp.os.linux)
    • kernel BUG at mm/slab.c:610
      ... I'm experimenting this kernel panic on 3 different ... I don't think this is related to buggy hardware ... Filesystem "hda1": Disabling barriers, not supported by the ... # ACPI Support ...
      (Linux-Kernel)
    • Re: PROBLEM: cannot get stable system since 2.6.28 kernel (amd64)
      ... Philippe> well, I don't really believe in hardware problem for two ... Philippe> older kernel, everything works like a charm, every time I ... Philippe> I haven't any "overclocking" settings, and every hardware ... # Device Drivers ...
      (Linux-Kernel)
    • BUG: soft lockup in 2.6.25.5
      ... hardware, ... Running CentOS 5.2 with a kernel.org kernel ... # PCI IDE chipsets support ... # Input Device Drivers ...
      (Linux-Kernel)