Linuxbringup serial port initialization time

Source: Internet
Author: User
Linuxbringup serial port when to initialize vmlinux. lds. slink script www.2cto. comSECTIONS {. init: {INIT_CALLSCON_INITCALL ----------- & gt; # defineCON_INITCALL \ SECURITY_INITCALL... linux bring up serial port when to initialize vmlinux. lds. S link script www.2cto.com SECTIONS {. init: {init_callcon_initcall -----------> # define CON_INITCALL \ SECURITY_INITCALL VMLINUX_SYMBOL (_ con_initcall_start) = .; \ INIT_RAM_FS *(. con_initcall.init) \} VMLINUX_SYMBOL (_ con_initcall_end) = .;}} in init. h contains such a macro definition # define console_initcall (fn) \ static initcall_t _ initcall _ # fn \ _ used _ section (. con_initcall.init) = fn serial driver ----> \ drivers \ amlogic \ uart \ am_uart.cstatic int _ init am_uart_lele_init (void) {register_console (& am_uart_console); return 0 ;} console_initcall (Listener); static void _ exit am_uart_exit (void) {# if 0 # ifdef CONFIG_AM_UART_CONSOLE unregister_console (& am_uart_console); # endif listener (& Listener ); uart_unregister_driver (& am_uart_reg);} module_init (am_uart_init ); ================> at startup, call the initialization serial port module_exit (am_uart_exit ).
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.